]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33403072142733d1ec24e92fea66bfb97e34d4a4
tree519927ea3830d1843893362ba802c5754e90b190
parented2c10877336cae84096d051a965fedf3556b6c2
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: b73bda75ff93 ("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