Skip to content

Commit

Permalink
net: decnet: dn_table: mark expected switch fall-through
Browse files Browse the repository at this point in the history
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 115106
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
GustavoARSilva authored and davem330 committed Nov 11, 2017
1 parent 765924e commit 2d91914
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/decnet/dn_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ static void dn_rehash_zone(struct dn_zone *dz)
default:
printk(KERN_DEBUG "DECnet: dn_rehash_zone: BUG! %d\n",
old_divisor);
/* fall through */
case 256:
new_divisor = 1024;
new_hashmask = 0x3FF;
Expand Down

0 comments on commit 2d91914

Please sign in to comment.