rtc: ds1685: remove set but unused variables
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 22 Nov 2019 10:22:07 +0000 (11:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 27 Nov 2019 08:31:13 +0000 (09:31 +0100)
commit47401580449c1de65350bd17324f778c7e937ea1
tree167010ad6f0fe27fc50d6cfe939f5047f64fdefd
parent75859ab1e7907d0515e515b956cd062b0fa6718c
rtc: ds1685: remove set but unused variables

Fix the following warnings:
drivers/rtc/rtc-ds1685.c: In function ‘ds1685_rtc_read_time’:
drivers/rtc/rtc-ds1685.c:264:5: warning: variable ‘ctrlb’ set but not used [-Wunused-but-set-variable]
  264 |  u8 ctrlb, century;
      |     ^~~~~
drivers/rtc/rtc-ds1685.c: In function ‘ds1685_rtc_proc’:
drivers/rtc/rtc-ds1685.c:758:19: warning: variable ‘ctrlc’ set but not used [-Wunused-but-set-variable]
  758 |  u8 ctrla, ctrlb, ctrlc, ctrld, ctrl4a, ctrl4b, ssn[8];
      |                   ^~~~~
Cc: Joshua Kinard <kumba@gentoo.org>
Acked-By: Joshua Kinard <kumba@gentoo.org>
Link: https://lore.kernel.org/r/20191122102212.400158-4-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1685.c