]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: qlge: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:39:51 +0000 (12:39 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Nov 2020 16:55:23 +0000 (17:55 +0100)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/673bd9f27bcc2df8c9d12be94f54001d8066d4ab.1605896060.git.gustavoars@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_main.c

index 39799a067e6f93064dc508ab7b4ab16ebc0bf768..e6b7baa12cd633ad652cd4ae51732334708eff82 100644 (file)
@@ -1382,6 +1382,7 @@ static void ql_categorize_rx_err(struct ql_adapter *qdev, u8 rx_err,
                break;
        case IB_MAC_IOCB_RSP_ERR_CRC:
                stats->rx_crc_err++;
+               break;
        default:
                break;
        }