aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-08-31 02:15:39 +0000
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-08-31 11:17:41 +0200
commitde96bc39951f106a074d5ee1db927ad8abbfe7fe (patch)
tree7d9fe67261096a689f1861a7db5e8c2e69eb4821 /drivers/rtc
parentrtc: rv8803: add Epson RX8803 support (diff)
downloadlinux-dev-de96bc39951f106a074d5ee1db927ad8abbfe7fe.tar.xz
linux-dev-de96bc39951f106a074d5ee1db927ad8abbfe7fe.zip
rtc: mrst: remove set but not used variable 'valid'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/rtc/rtc-mrst.c: In function 'mrst_procfs': drivers/rtc/rtc-mrst.c:264:29: warning: variable 'valid' set but not used [-Wunused-but-set-variable] unsigned char rtc_control, valid; Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-mrst.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c
index bf2d7af03d07..daf354a6a853 100644
--- a/drivers/rtc/rtc-mrst.c
+++ b/drivers/rtc/rtc-mrst.c
@@ -261,11 +261,10 @@ static int mrst_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
static int mrst_procfs(struct device *dev, struct seq_file *seq)
{
- unsigned char rtc_control, valid;
+ unsigned char rtc_control;
spin_lock_irq(&rtc_lock);
rtc_control = vrtc_cmos_read(RTC_CONTROL);
- valid = vrtc_cmos_read(RTC_VALID);
spin_unlock_irq(&rtc_lock);
seq_printf(seq,