nvme-rdma: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 5 Jul 2018 13:14:00 +0000 (08:14 -0500)
committerChristoph Hellwig <hch@lst.de>
Tue, 24 Jul 2018 13:55:48 +0000 (15:55 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c

index bb6e26fa833166f1ee99c5c48094a4305672c804..2d4a51a80e8fb18d41275fababdb7f1a14ef8e3c 100644 (file)
@@ -1591,6 +1591,7 @@ static int nvme_rdma_cm_handler(struct rdma_cm_id *cm_id,
        case RDMA_CM_EVENT_CONNECT_ERROR:
        case RDMA_CM_EVENT_UNREACHABLE:
                nvme_rdma_destroy_queue_ib(queue);
+               /* fall through */
        case RDMA_CM_EVENT_ADDR_ERROR:
                dev_dbg(queue->ctrl->ctrl.device,
                        "CM error event %d\n", ev->event);