]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: at91sam9: Remove unnecessary offset variable checks
authorNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Thu, 8 Jul 2021 05:13:40 +0000 (14:13 +0900)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 10 Jul 2021 00:42:08 +0000 (02:42 +0200)
commitcacc8068b9e09189b8b43de2c38509ae9454ccae
treeee8c246bc34dda86c413d3f252cf46c4002edcb9
parent858dbdc0675e050d916ab77cdca1e36ab1c3771e
rtc: at91sam9: Remove unnecessary offset variable checks

The offset variable is checked by at91_rtc_readalarm(), but this check
is unnecessary because the previous check knew that the value of this
variable was not 0.
This removes that unnecessary offset variable checks.

Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210708051340.341345-1-nobuhiro1.iwamatsu@toshiba.co.jp
drivers/rtc/rtc-at91sam9.c