Skip to contentSkip to conversation

net: decnet: dn_table: mark expected switch fall-through

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Nov 9, 2017 – Nov 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: decnet: dn_table: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

Addresses-Coverity-ID: 115106

---
 net/decnet/dn_table.c | 1 +
 1 file changed, 1 insertion(+)
net/decnet/dn_table.c +1 -0
index 08667f6..f0710b5 100644
@@ -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;
Signature · 1 line
2.7.4