Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEC67C48BDF for ; Thu, 24 Jun 2021 05:59:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 93F01613ED for ; Thu, 24 Jun 2021 05:59:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93F01613ED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cdjrlc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TpAlIIPPoZXCoKW58QeJP3YrUAVt33jta+rdoD2E+ag=; b=EdjFRml0nj9dAv 7Tnb8M8+MUgYi9AtmTK1xEKyiEChYad1UNFhOOd01gC1X3uWhJc/R3JV3YYa2LW6hHWCTK0pfD5tv 6jsVReVgL6D+3zBYLJoZ++Mqd75WwLEYQzZElsp0bIg5SFcZgO9S1XtndWhrz9Y78JLrfSssPW7CS xxbN84S+xtl0SnZjFqdDIXtoi0SfJ92xAX9g+wiMtJBd5gZ1Zt06oprPgbF0O8afoKtgGAjz6QZuU 0E8vsar8bmMwv+WyC587NzQXyn1ZeKtW9pvipA8SN8P1AE+E8Y5yyPgPQqrE4v1smMOgORnhuIErS NCG4q4pQWs4CmtFHRnDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwIMc-00Csse-L3; Thu, 24 Jun 2021 05:57:22 +0000 Received: from smtpbgsg2.qq.com ([54.254.200.128]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwIMX-00Cslu-LU for linux-arm-kernel@lists.infradead.org; Thu, 24 Jun 2021 05:57:19 +0000 X-QQ-mid: bizesmtp50t1624514205tvay5az3 Received: from localhost.localdomain (unknown [182.148.13.245]) by esmtp6.qq.com (ESMTP) with id ; Thu, 24 Jun 2021 13:56:44 +0800 (CST) X-QQ-SSF: 01000000004000208000B00A0000000 X-QQ-FEAT: P8dY9APmXTT+82giyaxl6dD9BSxjAjNhzPTBtmdSKm+ttIHXH//n7XNlct1y3 E+Wo3Dnyw30hoy34Qdjs+A16M2pI8OkIZZASAGtlk9EaaU6bFokOfrGvmFa4EtcxLxDqjm2 TTkv7DGu6E+C4la6WXnF/h21sne5cVunYUGln0Gu1t4Xf+vdnemC7N6k3BtOCAgoi+aWKVp TaoP0k798CduCuvg1m3M8zDmYICD74ZgFgSde4mSKlyXStjf0JSbvz9y1GesXeKCABjAiYi PR6OYv7WRdbWeOt9UAle7sLkW2hTZVk9x4PGN79J2HBmJNa05NJxHJO0jD7DCNc4VC6J1yZ PAn/TLC X-QQ-GoodBg: 0 From: Jason Wang To: krzysztof.kozlowski@canonical.com Cc: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] Delete unneed variable "delay" on line 79 Date: Thu, 24 Jun 2021 13:56:27 +0800 Message-Id: <20210624055627.22295-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210623_225718_077907_725EF4DD X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org "delay" variable on line 79 can be deleted by returning "0" on line 88. Signed-off-by: Jason Wang --- arch/arm/mach-s3c/mach-gta02.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-s3c/mach-gta02.c b/arch/arm/mach-s3c/mach-gta02.c index aec8b451c016..418939ce0fc3 100644 --- a/arch/arm/mach-s3c/mach-gta02.c +++ b/arch/arm/mach-s3c/mach-gta02.c @@ -79,13 +79,12 @@ static struct pcf50633 *gta02_pcf; static long gta02_panic_blink(int state) { - long delay = 0; char led; led = (state) ? 1 : 0; gpio_direction_output(GTA02_GPIO_AUX_LED, led); - return delay; + return 0; } -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel