diff --git a/kernel/mars_net.c b/kernel/mars_net.c index 35a38435..5a1e78d0 100644 --- a/kernel/mars_net.c +++ b/kernel/mars_net.c @@ -1021,7 +1021,9 @@ int _desc_send_item(struct mars_socket *msock, const void *data, const struct ma if (unlikely(status < 0)) return status; /* fallthrough */ + goto label_default; default: + label_default: if (likely(len > 0)) { status = mars_send_raw(msock, item, len, cork); if (unlikely(status < 0)) @@ -1109,7 +1111,9 @@ int _desc_recv_item(struct mars_socket *msock, void *data, const struct mars_des } /* fallthrough */ + goto label_default; default: + label_default: if (likely(len > 0)) { status = mars_recv_raw(msock, item, len, len); if (unlikely(status < 0))