From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de (mout.web.de [212.227.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xmthg1nMlzDqYY for ; Wed, 6 Sep 2017 03:18:10 +1000 (AEST) Subject: [PATCH v2] axonram: Delete an unnecessary variable initialisation in axon_ram_probe() To: kbuild test robot , linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt , Jan Kara , Jens Axboe , Dan Williams , Michael Ellerman , Paul Mackerras , Tyrel Datwyler Cc: kbuild-all@01.org, LKML , kernel-janitors@vger.kernel.org References: <201708042137.1QRfZLa9%fengguang.wu@intel.com> From: SF Markus Elfring Message-ID: <96042828-9707-8af9-664a-5c71818dd817@users.sourceforge.net> Date: Tue, 5 Sep 2017 19:11:31 +0200 MIME-Version: 1.0 In-Reply-To: <201708042137.1QRfZLa9%fengguang.wu@intel.com> Content-Type: text/plain; charset=windows-1252 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Markus Elfring Date: Tue, 5 Sep 2017 18:47:02 +0200 The local variable "rc" will eventually be set only to an error code. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- v2: Three update steps were integrated for this software module on 2017-09-01. Thus improve another source code place. arch/powerpc/sysdev/axonram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index c60e84e4558d..1b307c80b401 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c @@ -184,7 +184,7 @@ static int axon_ram_probe(struct platform_device *device) static int axon_ram_bank_id = -1; struct axon_ram_bank *bank; struct resource resource; - int rc = 0; + int rc; axon_ram_bank_id++; -- 2.14.1