]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: fix fall-through annotation
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 29 Apr 2019 17:38:07 +0000 (12:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 15:36:55 +0000 (11:36 -0400)
commit1bdb07fefea4483db5a75fb452fd46cc9d883a8b
tree4e17786dbfcf2baa5f9e3c981544dab0afe1bd58
parentaf664c3726cea4258849bc346b6ec61dd46e3c4b
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>
drivers/net/netdevsim/bus.c