]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
fabrics: Use fallthrough statement
authorDaniel Wagner <dwagner@suse.de>
Fri, 21 Oct 2022 07:17:15 +0000 (09:17 +0200)
committerDaniel Wagner <dwagner@suse.de>
Fri, 21 Oct 2022 07:17:15 +0000 (09:17 +0200)
Use consistently the fallthrough statement as we have a fallback in
util.h in case the compiler doesn't support it.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/fabrics.c

index fe8143b5ca64962f1cdaf04fd66aa53b5e8b3060..1a4ac4a5426136809c5079e45ce604a45678ed0b 100644 (file)
@@ -742,7 +742,7 @@ nvme_ctrl_t nvmf_connect_disc_entry(nvme_host_t h,
        default:
                nvme_msg(h->r, LOG_ERR, "unsupported subtype %d\n",
                         e->subtype);
-               /* fallthrough */
+               fallthrough;
        case NVME_NQN_NVME:
                nvme_ctrl_set_discovery_ctrl(c, false);
                break;