diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-25 17:07:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-27 00:09:27 +0300 |
commit | 2ed9db3074fcd8d12709fe40ff0e691d74229818 (patch) | |
tree | 519927ea3830d1843893362ba802c5754e90b190 /net/sched | |
parent | 2b139e6b1ec86e1d3646039965dd79ad05d8dca4 (diff) | |
download | linux-2ed9db3074fcd8d12709fe40ff0e691d74229818.tar.xz |
net: sched: cls_api: fix dead code in switch
Code at line 1850 is unreachable. Fix this by removing the break
statement above it, so the code for case RTM_GETCHAIN can be
properly executed.
Addresses-Coverity-ID: 1472050 ("Structurally dead code")
Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/cls_api.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 5f7098b5405e..f3d78c23338e 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -1846,7 +1846,6 @@ replay: tcf_chain_put_explicitly_created(chain); break; case RTM_GETCHAIN: - break; err = tc_chain_notify(chain, skb, n->nlmsg_seq, n->nlmsg_seq, n->nlmsg_type, true); if (err < 0) |