rtc: omap: Do not check for 0 return after calling platform_get_irq()
authorRuan Jinjie <ruanjinjie@huawei.com>
Thu, 3 Aug 2023 08:07:12 +0000 (16:07 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 16 Aug 2023 23:17:34 +0000 (01:17 +0200)
commit4d349a5793f7a42da27ea56d9f6e2f9488d44e0d
tree53badb3f0fcd7371b66724447d52619581c0761a
parent0197a7cb44872e49919b0068a512aaf4e06f1850
rtc: omap: Do not check for 0 return after calling platform_get_irq()

It is not possible for platform_get_irq() to return 0. Use the
return value from platform_get_irq().

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230803080713.4061782-2-ruanjinjie@huawei.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-omap.c