Skip to content

Commit

Permalink
davicom: Annotate implicit fall through in dm9000_set_io
Browse files Browse the repository at this point in the history
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 <malat@debian.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mathieu Malaterre authored and David S. Miller committed Jan 17, 2019
1 parent 49b4994 commit 43deda5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/davicom/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ static void dm9000_set_io(struct board_info *db, int byte_width)

case 3:
dev_dbg(db->dev, ": 3 byte IO, falling back to 16bit\n");
/* fall through */
case 2:
db->dumpblk = dm9000_dumpblk_16bit;
db->outblk = dm9000_outblk_16bit;
Expand Down

0 comments on commit 43deda5

Please sign in to comment.