net/ipv4: Remove unused variable in route.c
authorTim Hansen <devtimhansen@gmail.com>
Wed, 4 Oct 2017 19:59:49 +0000 (15:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2017 04:16:06 +0000 (21:16 -0700)
int rc is unmodified after initalization in net/ipv4/route.c, this patch simply cleans up that variable and returns 0.

This was found with coccicheck M=net/ipv4/ on linus' tree.

Signed-off-by: Tim Hansen <devtimhansen@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c

index ac6fde5d45f14dd258ffd6a8a5ba7a3f1ed0bf63..1c7ed77968c99a2ad404ed4990d517c5e55d5766 100644 (file)
@@ -3038,7 +3038,6 @@ struct ip_rt_acct __percpu *ip_rt_acct __read_mostly;
 
 int __init ip_rt_init(void)
 {
-       int rc = 0;
        int cpu;
 
        ip_idents = kmalloc(IP_IDENTS_SZ * sizeof(*ip_idents), GFP_KERNEL);
@@ -3095,7 +3094,7 @@ int __init ip_rt_init(void)
 #endif
        register_pernet_subsys(&rt_genid_ops);
        register_pernet_subsys(&ipv4_inetpeer_ops);
-       return rc;
+       return 0;
 }
 
 #ifdef CONFIG_SYSCTL