net: decnet: dn_table: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 9 Nov 2017 03:38:28 +0000 (21:38 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 10:10:06 +0000 (19:10 +0900)
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 <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_table.c

index 08667f68e601188d75029daaf4919107576450ec..f0710b5d037d09d5e2e48cd842e7c999a9061fc7 100644 (file)
@@ -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;