diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-04-21 00:51:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-21 02:26:58 +0300 |
commit | b6246f4d8d0778fd045b84dbd7fc5aadd8f3136e (patch) | |
tree | 8f84f8a4d4674e5a8fb876679283009faba227d8 /net | |
parent | bd1266d3f21f7aba69d6c0627b2b81beb67df824 (diff) | |
download | linux-b6246f4d8d0778fd045b84dbd7fc5aadd8f3136e.tar.xz |
net: ipv4: remove redundant assignment to variable rc
The variable rc is being assigned with a value that is never read
and it is being updated later with a new value. The initialization 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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/af_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index cf58e29cf746..c618e242490f 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1914,7 +1914,7 @@ static int __init inet_init(void) { struct inet_protosw *q; struct list_head *r; - int rc = -EINVAL; + int rc; sock_skb_cb_check_size(sizeof(struct inet_skb_parm)); |