projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce4f8af
)
ipv6: fib6: remove redundant initialization of variable err
author
Colin Ian King
<colin.king@canonical.com>
Sun, 13 Jun 2021 13:46:36 +0000
(14:46 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 Jun 2021 19:42:26 +0000
(12:42 -0700)
The variable err is being initialized with a value that is never read, the
assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/fib6_rules.c
patch
|
blob
|
history
diff --git
a/net/ipv6/fib6_rules.c
b/net/ipv6/fib6_rules.c
index
8f9a833
..
40f3e4f
100644
(file)
--- a/
net/ipv6/fib6_rules.c
+++ b/
net/ipv6/fib6_rules.c
@@
-467,7
+467,7
@@
static const struct fib_rules_ops __net_initconst fib6_rules_ops_template = {
static int __net_init fib6_rules_net_init(struct net *net)
{
struct fib_rules_ops *ops;
- int err
= -ENOMEM
;
+ int err;
ops = fib_rules_register(&fib6_rules_ops_template, net);
if (IS_ERR(ops))