From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: Olof Johansson <olof@lixom.net>, Arnd Bergmann <arnd@arndb.de>,
arm@kernel.org, soc@kernel.org
Cc: Jason Wang <wangborong@cdjrlc.com>,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Subject: [PATCH][PULL/direct] ARM: s3c: delete unneed local variable "delay"
Date: Wed, 18 Aug 2021 22:44:22 +0200 [thread overview]
Message-ID: <20210818204422.17919-1-krzysztof.kozlowski@canonical.com> (raw)
Message-ID: <20210818204422.zuTXFTFRJd0GUoDz95aBGS6sCrgfDl-yFgZUB1raE4M@z> (raw)
From: Jason Wang <wangborong@cdjrlc.com>
"delay" variable on line 79 can be deleted by returning "0" on line 88.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Link: https://lore.kernel.org/r/20210624055627.22295-1-wangborong@cdjrlc.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
Hi Arnd and Olof,
I have just one patch for Samsung ARM mach/soc, so sending this
directly.
Best regards,
Krzysztof
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.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2021-08-18 20:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210818204422.zuTXFTFRJd0GUoDz95aBGS6sCrgfDl-yFgZUB1raE4M@z>
2021-08-18 20:44 ` Krzysztof Kozlowski [this message]
2021-08-19 15:30 ` [PATCH][PULL/direct] ARM: s3c: delete unneed local variable "delay" patchwork-bot+linux-soc
[not found] ` <20210819154454._iZMOr-YPpR5Q-QtzPm1fdsgWetSnNWBzte83SzZ4_A@z>
2021-08-19 15:44 ` Arnd Bergmann
[not found] ` <20210819214057.euW1HyinddUzKlk3NoRfIdPVrmDpuNlMLJOS8cCtaBE@z>
2021-08-19 21:40 ` Arnd Bergmann
2021-08-19 21:40 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210818204422.17919-1-krzysztof.kozlowski@canonical.com \
--to=krzysztof.kozlowski@canonical.com \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=olof@lixom.net \
--cc=soc@kernel.org \
--cc=wangborong@cdjrlc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).