Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
b6246f4d bd1266d3

+1 -1
+1 -1
net/ipv4/af_inet.c
··· 1914 1914 { 1915 1915 struct inet_protosw *q; 1916 1916 struct list_head *r; 1917 - int rc = -EINVAL; 1917 + int rc; 1918 1918 1919 1919 sock_skb_cb_check_size(sizeof(struct inet_skb_parm)); 1920 1920