Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 6d1474a

Browse files
GustavoARSilvadavem330
authored andcommitted
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 <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4a46a7c commit 6d1474a

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/netdevsim

1 file changed

+1
-1
lines changed

drivers/net/netdevsim/bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ new_device_store(struct bus_type *bus, const char *buf, size_t count)
168168
switch (err) {
169169
case 1:
170170
port_count = 1;
171-
/* pass through */
171+
/* fall through */
172172
case 2:
173173
if (id > INT_MAX) {
174174
pr_err("Value of \"id\" is too big.\n");

0 commit comments

Comments
 (0)