Skip to content

Commit 43deda5

Browse files
malaterredavem330
authored andcommitted
davicom: Annotate implicit fall through in dm9000_set_io
There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1). This commit removes the following warning: include/linux/device.h:1480:5: warning: this statement may fall through [-Wimplicit-fallthrough=] drivers/net/ethernet/davicom/dm9000.c:397:3: note: in expansion of macro 'dev_dbg' drivers/net/ethernet/davicom/dm9000.c:398:2: note: here Signed-off-by: Mathieu Malaterre <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 49b4994 commit 43deda5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/davicom/dm9000.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ static void dm9000_set_io(struct board_info *db, int byte_width)
395395

396396
case 3:
397397
dev_dbg(db->dev, ": 3 byte IO, falling back to 16bit\n");
398+
/* fall through */
398399
case 2:
399400
db->dumpblk = dm9000_dumpblk_16bit;
400401
db->outblk = dm9000_outblk_16bit;

0 commit comments

Comments
 (0)