Skip to content

Commit

Permalink
net: ipv4: remove redundant assignment to variable rc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Apr 20, 2020
1 parent bd1266d commit b6246f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit b6246f4

Please sign in to comment.