]> granicus.if.org Git - ipset/commitdiff
netfilter: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sat, 6 Jan 2018 15:53:35 +0000 (16:53 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 6 Jan 2018 15:53:35 +0000 (16:53 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
kernel/net/netfilter/ipset/ip_set_core.c

index 31704e8301a9996a36b9689a590043d195d6e517..806ff8bd264659349123719e5814d7747c1437e8 100644 (file)
@@ -1423,7 +1423,7 @@ dump_last:
                                goto next_set;
                        if (set->variant->uref)
                                set->variant->uref(set, cb, true);
-                       /* Fall through and add elements */
+                       /* fall through */
                default:
                        ret = set->variant->list(set, skb, cb);
                        if (!cb->args[IPSET_CB_ARG0])