diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-04-29 19:38:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-01 17:36:55 +0200 |
commit | 6d1474a94ea2641f56c7893eb1e30558fd92f55d (patch) | |
tree | 4e17786dbfcf2baa5f9e3c981544dab0afe1bd58 /drivers/net/netdevsim/bus.c | |
parent | sfc: mcdi_port: Mark expected switch fall-through (diff) | |
download | linux-6d1474a94ea2641f56c7893eb1e30558fd92f55d.tar.xz linux-6d1474a94ea2641f56c7893eb1e30558fd92f55d.zip |
netdevsim: fix fall-through annotation
Replace "pass through" with a proper "fall through" annotation
in order to fix the following warning:
drivers/net/netdevsim/bus.c: In function ‘new_device_store’:
drivers/net/netdevsim/bus.c:170:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
port_count = 1;
~~~~~~~~~~~^~~
drivers/net/netdevsim/bus.c:172:2: note: here
case 2:
^~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
This fix is part of the ongoing efforts to enable
-Wimplicit-fallthrough
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/bus.c')
-rw-r--r-- | drivers/net/netdevsim/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/bus.c b/drivers/net/netdevsim/bus.c index ae482347b67b..fd68eeac574c 100644 --- a/drivers/net/netdevsim/bus.c +++ b/drivers/net/netdevsim/bus.c @@ -168,7 +168,7 @@ new_device_store(struct bus_type *bus, const char *buf, size_t count) switch (err) { case 1: port_count = 1; - /* pass through */ + /* fall through */ case 2: if (id > INT_MAX) { pr_err("Value of \"id\" is too big.\n"); |