summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2019-05-03 18:42:17 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-05-08 23:14:36 +0300
commit557fbf4f387a6b3df2e02647848b7b4f1064e104 (patch)
tree62cf9bcd955b5e8c7da6b59c42e182058de8c753 /drivers/rtc
parenta01ab0669ddf652f521630129e614c16542994b0 (diff)
downloadlinux-557fbf4f387a6b3df2e02647848b7b4f1064e104.tar.xz
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 <anders.roxell@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-imxdi.c1
1 files changed, 0 insertions, 1 deletions
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 */