rtc: ds1511: drop useless checks
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 27 Feb 2024 23:04:16 +0000 (00:04 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Feb 2024 21:15:46 +0000 (22:15 +0100)
commitf4282a4303dc7eada2543ea9b87e2b9bdec9344b
treef7391ef5b94d9a596e87fe6870a2caa9784ee60d
parent6613476e225e090cc9aad49be7fa504e290dd33d
rtc: ds1511: drop useless checks

The RTC core will always pass a valid rtc_tm, it is unnecessary to check
the validity of its members, especially with an open coded version of
rtc_valid_tm().

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