diff options
| author | Colin Ian King <[email protected]> | 2017-09-29 14:01:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-01 03:08:00 +0000 |
| commit | b1c49d14200dae47544f7ea6ee9040ded01f8425 (patch) | |
| tree | d4fe30350d8cbe74e5597ca2ba21a61425d3a392 /net/sched/cls_basic.c | |
| parent | net: ipmr: make function ipmr_notifier_init static (diff) | |
| download | kernel-b1c49d14200dae47544f7ea6ee9040ded01f8425.tar.gz kernel-b1c49d14200dae47544f7ea6ee9040ded01f8425.zip | |
net_sched: remove redundant assignment to ret
The assignment of -EINVAL to variable ret is redundant as it
is being overwritten on the following error exit paths or
to the return value from the following call to basic_set_parms.
Fix this up by removing it. Cleans up clang warning message:
net/sched/cls_basic.c:185:2: warning: Value stored to 'err' is never read
Fixes: 1d8134fea2eb ("net_sched: use idr to allocate basic filter handles")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
| -rw-r--r-- | net/sched/cls_basic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index cfeb6f158566..700b345b07f9 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -182,7 +182,6 @@ static int basic_change(struct net *net, struct sk_buff *in_skb, if (err < 0) goto errout; - err = -EINVAL; if (handle) { fnew->handle = handle; if (!fold) { |
