Re: [PATCH] rtc: stm32: One function call less in stm32_rtc_set_alarm()

2019-07-07 Thread Russell King - ARM Linux admin
On Fri, Jul 05, 2019 at 10:17:11PM +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 5 Jul 2019 22:10:10 +0200 > > Avoid an extra function call by using a ternary operator instead of > a conditional statement. ... and a totally pointless use of the ternary operator. > @@ -519,11

[PATCH] rtc: stm32: One function call less in stm32_rtc_set_alarm()

2019-07-05 Thread Markus Elfring
From: Markus Elfring Date: Fri, 5 Jul 2019 22:10:10 +0200 Avoid an extra function call by using a ternary operator instead of a conditional statement. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/rtc/rtc-stm32.c | 6 +- 1 file changed