Skip to content
Commit fe63604c authored by Markus Elfring's avatar Markus Elfring Committed by Alexandre Belloni
Browse files

rtc: stm32: remove one condition check in stm32_rtc_set_alarm()



A condition check was repeated in this function implementation despite of
a corresponding check in the stm32_rtc_alarm_irq_enable() function.
Thus delete redundant source code here.

This issue was detected by using the Coccinelle software.

Suggested-by: default avatarRussell King <linux@armlinux.org.uk>
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarAmelie Delaunay <amelie.delaunay@st.com>
Link: https://lore.kernel.org/r/4da614a4-83c6-548c-a112-033b846c561b@web.de
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent f2f5cb6a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment