net: sched: cls_api: fix dead code in switch
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 25 Jul 2018 14:07:24 +0000 (09:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 21:09:27 +0000 (14:09 -0700)
commit2ed9db3074fcd8d12709fe40ff0e691d74229818
tree519927ea3830d1843893362ba802c5754e90b190
parent2b139e6b1ec86e1d3646039965dd79ad05d8dca4
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>
net/sched/cls_api.c