From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751290AbdJDT66 (ORCPT ); Wed, 4 Oct 2017 15:58:58 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:44141 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbdJDT64 (ORCPT ); Wed, 4 Oct 2017 15:58:56 -0400 X-Google-Smtp-Source: AOwi7QC9IlZy3E+iOdGcsA3mBWREghiXo1FakiKok+Obsg+YwMR4wYwooIfwkkKo0qPjIyHBAeNQdA== Date: Wed, 4 Oct 2017 15:59:49 -0400 From: Tim Hansen To: davem@davemloft.net Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexander.levin@one.verizon.com, devtimhansen@gmail.com Subject: [PATCH] net/ipv4: Remove unused variable in route.c Message-ID: <20171004195949.GA39492@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- net/ipv4/route.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 94d4cd2..02b6be9 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -3032,7 +3032,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); @@ -3089,7 +3088,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 -- 2.1.4