From: Gustavo A. R. Silva Date: Wed, 10 Mar 2021 05:42:43 +0000 (-0600) Subject: net: core: Fix fall-through warnings for Clang X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=b1866bfff9223e4d15727e05a865b744a163eff2;p=kernel.git net: core: 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 Signed-off-by: Gustavo A. R. Silva Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 6c5967e801328..2bfdd528c7c37 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5265,6 +5265,7 @@ skip_classify: goto another_round; case RX_HANDLER_EXACT: deliver_exact = true; + break; case RX_HANDLER_PASS: break; default: