]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: be2iscsi: be_iscsi: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 26 Nov 2018 17:46:20 +0000 (11:46 -0600)
committerGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 8 Apr 2019 23:37:14 +0000 (18:37 -0500)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
drivers/scsi/be2iscsi/be_iscsi.c

index 96b96e2ab91aff7b96b8b160e3e18bd0e0d6a537..ed1bd369baa00c121c3c079a1e82315e1a76de73 100644 (file)
@@ -679,6 +679,7 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn,
        case ISCSI_PARAM_MAX_XMIT_DLENGTH:
                if (conn->max_xmit_dlength > 65536)
                        conn->max_xmit_dlength = 65536;
+               /* fall through */
        default:
                return 0;
        }