Skip to content

Commit b6246f4

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bd1266d commit b6246f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/af_inet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ static int __init inet_init(void)
19141914
{
19151915
struct inet_protosw *q;
19161916
struct list_head *r;
1917-
int rc = -EINVAL;
1917+
int rc;
19181918

19191919
sock_skb_cb_check_size(sizeof(struct inet_skb_parm));
19201920

0 commit comments

Comments
 (0)