]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:31:30 +0000 (12:31 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 18 May 2021 00:06:13 +0000 (19:06 -0500)
commit3017cafed33d2179dd681af95c67562860983827
treef216273dcda1bc93ea6acb54d72cf448743b1c88
parentca5fb4d1b652fe5632572533f7025c5ae9866ccf
nfp: Fix fall-through warnings for Clang

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
Acked-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c