Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1743248ybv; Fri, 21 Feb 2020 02:44:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxBEB+b+dC5FvRiEofrjy19tWOeSuzQ/Di2E1fi4MJJGO/oqrz7P1xUjRpeqkJDUMXFQKXu X-Received: by 2002:a9d:4c14:: with SMTP id l20mr27327817otf.125.1582281896271; Fri, 21 Feb 2020 02:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582281896; cv=none; d=google.com; s=arc-20160816; b=yROEpD9cLdO3xIsz5Dvkq9nqW+N6Bsv9BrJ+JdAkzXXaZFU2Gwkhbe4AUSaeXevrGt 1QhlkooXC1xrMzsvpZV0t1qhW9oQYJ0kUomLZ2xLEfjDSWX4ovSpZtXzKYwjs7LZfc9x 4GccVuqFWIsYHEHDENF5BNbEwRLOpWNgbYLVWKDEkxTCQ9qtZkaUXPJOLAg2QGwJhRoV RRqUZpVWljlZQL2MEZEgKjn4dnyxVmeL8RtIiWMImu/AGuQKzhFH0iJrHCDPmXHtg7zf gVIEBjkXpOrMkUr2MHIJ4XYgMJjLG93yZCFN4e4eaZY6tBDd9Hts0tXNxTzUgr994Yph ObAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=zVDV40Fc2VdXBGML4NkBim2XvU28VqoR4PTZ4fQOx+Q=; b=UaiV3qWi9mG+JpAMVB5H+OaK2OJv2W78/gUnH8D/yHGXnG/wEprAXYW7wWMcQUMcN7 +1yjPogMx3ymKw4qldVtPmRL7h4hQsB16BKXdYX0h2uoMqQuVcjzR/JJQaSynZOq9lgM srsUY7UuDeBV3le6sjO+nffV07Sp3KG6lrMyqq2qjkAWlhlXylmvaqmuU/pxggvVoC0/ 1+oVCdSzLEfxZY9EL+3DZC13a8ODiscFJxWjcbdLkjNJz8FiyL57uvxKQZC03qjAywKY Gsg6KW5SOTKYrFDNyD9VnSGE99pB9eIsz50Kg2sO3RJb3meORGEMEnLluu1KJNk59moJ 7sxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si1377866otf.36.2020.02.21.02.44.43; Fri, 21 Feb 2020 02:44:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727998AbgBUKob (ORCPT + 99 others); Fri, 21 Feb 2020 05:44:31 -0500 Received: from smtp21.cstnet.cn ([159.226.251.21]:52974 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726325AbgBUKob (ORCPT ); Fri, 21 Feb 2020 05:44:31 -0500 Received: from ubuntu.localdomain (unknown [183.131.110.113]) by APP-01 (Coremail) with SMTP id qwCowACXdzCQsU9eDiW+BA--.42124S2; Fri, 21 Feb 2020 18:31:47 +0800 (CST) From: Xu Wang To: alex@digriz.org.uk, jason@lakedaemon.net, andrew@lunn.ch Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ARM: orion5x: ts78xx: Remove unneeded variable ret Date: Fri, 21 Feb 2020 18:31:41 +0800 Message-Id: <20200221103141.3633-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowACXdzCQsU9eDiW+BA--.42124S2 X-Coremail-Antispam: 1UD129KBjvdXoW7JFW3uFWUAFykJrWUuF1DGFg_yoWfArcE9r 4Sgwn7WryfAF4j9r15G3Z3Gr17Ka4vqFs0gryqqwsxAr17Zw13urWDZwnxGry8WFy8Gr4S qrZ7Ja4ak3ZrGjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbwkYjsxI4VWkKwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVW8Jr0_Cr 1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCF x2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14 v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY 67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2 IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU59jjPUUUUU== X-Originating-IP: [183.131.110.113] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiDAMNA1z4ixYqcgADsj Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variable ret used to store return value,just return 0. Signed-off-by: Xu Wang --- arch/arm/mach-orion5x/ts78xx-setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c index fda9b75c3a33..a39764faf2a0 100644 --- a/arch/arm/mach-orion5x/ts78xx-setup.c +++ b/arch/arm/mach-orion5x/ts78xx-setup.c @@ -398,7 +398,6 @@ static int ts78xx_fpga_load_devices(void) static int ts78xx_fpga_unload_devices(void) { - int ret = 0; if (ts78xx_fpga.supports.ts_rtc.present == 1) ts78xx_ts_rtc_unload(); @@ -407,7 +406,7 @@ static int ts78xx_fpga_unload_devices(void) if (ts78xx_fpga.supports.ts_rng.present == 1) ts78xx_ts_rng_unload(); - return ret; + return 0; } static int ts78xx_fpga_load(void) -- 2.17.1