* [PATCH] rtc: imxdi: remove unused variable
@ 2019-05-03 15:42 Anders Roxell
2019-05-03 15:53 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Anders Roxell @ 2019-05-03 15:42 UTC (permalink / raw)
To: a.zummo, alexandre.belloni, shawnguo, s.hauer
Cc: linux-rtc, linux-arm-kernel, linux-kernel, Anders Roxell
This variable is no longer used and the compiler rightly complains that
it should be removed.
../drivers/rtc/rtc-imxdi.c: In function ‘dryice_rtc_set_alarm’:
../drivers/rtc/rtc-imxdi.c:633:16: warning: unused variable ‘now’ [-Wunused-variable]
unsigned long now;
^~~
Rework to remove the unused variable.
Fixes: 629d488a3eb6 ("rtc: imxdi: remove unnecessary check")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
drivers/rtc/rtc-imxdi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c
index 6342bc403645..3f3d652a0b0f 100644
--- a/drivers/rtc/rtc-imxdi.c
+++ b/drivers/rtc/rtc-imxdi.c
@@ -630,7 +630,6 @@ static int dryice_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
static int dryice_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
{
struct imxdi_dev *imxdi = dev_get_drvdata(dev);
- unsigned long now;
int rc;
/* write the new alarm time */
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] rtc: imxdi: remove unused variable
2019-05-03 15:42 [PATCH] rtc: imxdi: remove unused variable Anders Roxell
@ 2019-05-03 15:53 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2019-05-03 15:53 UTC (permalink / raw)
To: Anders Roxell
Cc: a.zummo, shawnguo, s.hauer, linux-rtc, linux-arm-kernel,
linux-kernel
On 03/05/2019 17:42:17+0200, Anders Roxell wrote:
> This variable is no longer used and the compiler rightly complains that
> it should be removed.
>
> ../drivers/rtc/rtc-imxdi.c: In function ‘dryice_rtc_set_alarm’:
> ../drivers/rtc/rtc-imxdi.c:633:16: warning: unused variable ‘now’ [-Wunused-variable]
> unsigned long now;
> ^~~
>
> Rework to remove the unused variable.
>
> Fixes: 629d488a3eb6 ("rtc: imxdi: remove unnecessary check")
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> drivers/rtc/rtc-imxdi.c | 1 -
> 1 file changed, 1 deletion(-)
>
Applied, thanks.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-03 15:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-03 15:42 [PATCH] rtc: imxdi: remove unused variable Anders Roxell
2019-05-03 15:53 ` Alexandre Belloni
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).