rtc: rv3029: avoid reading the status register uselessly
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:10:11 +0000 (23:10 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:37:54 +0000 (10:37 +0100)
commit35c2daaf554b3e6bb4a3ff4438e801e57ae5a0a3
treeb481dc4214892baea474aee317a96f218bff784c
parent54c5970df449103ec1181b92d41a2d14a79fe562
rtc: rv3029: avoid reading the status register uselessly

RV3029_STATUS is read in multiple location but its value is never used
afterwards. Avoid this register access when not necessary.

Link: https://lore.kernel.org/r/20191214221022.622482-6-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rv3029c2.c