rtc: imxdi: remove unused variable
Subsystems (2)
PATCH 1/1 rtc: imxdi: remove unused variable
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 <[email protected]>
--- drivers/rtc/rtc-imxdi.c | 1 - 1 file changed, 1 deletion(-)
drivers/rtc/rtc-imxdi.c +0 -1
@@ -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 */
Signature · 1 line
2.20.1
Quoted 8 lines · 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; ^~~
Quoted 8 lines
Rework to remove the unused variable.
Fixes 629d488a3eb6 ("rtc: imxdi: remove unnecessary check")Signed-off-by Anders Roxell <[email protected]>--- drivers/rtc/rtc-imxdi.c | 1 - 1 file changed, 1 deletion(-)
Applied, thanks.
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com