From: Gustavo A. R. Silva <hidden> Date: 2018-07-25 14:08:25
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 <redacted>
---
net/sched/cls_api.c | 1 -
1 file changed, 1 deletion(-)
Wed, Jul 25, 2018 at 04:07:24PM CEST, gustavo@embeddedor.com wrote:
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 <redacted>
Acked-by: Jiri Pirko <redacted>
I'm just writing a selftest to test this path. Thanks.
From: David Miller <davem@davemloft.net> Date: 2018-07-26 21:10:27
From: "Gustavo A. R. Silva" <redacted>
Date: Wed, 25 Jul 2018 09:07:24 -0500
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 <redacted>
Applied, thanks.
Please use "[PATCH net-next] ..." in your subject lines to indirect
the tree that this change is relevant for and targetted to.
Thank you.
From: Gustavo A. R. Silva <hidden> Date: 2018-07-26 21:32:13
On 07/26/2018 04:10 PM, David Miller wrote:
From: "Gustavo A. R. Silva" <redacted>
Date: Wed, 25 Jul 2018 09:07:24 -0500
quoted
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 <redacted>
Applied, thanks.
Please use "[PATCH net-next] ..." in your subject lines to indirect
the tree that this change is relevant for and targetted to.