[PATCH v2] rtc: ftrtc010: fix cast
Linus Walleij
linusw at kernel.org
Wed Oct 7 04:20:10 PDT 2026
On Mon, Oct 5, 2026 at 1:15 PM <alexandre.belloni at bootlin.com> wrote:
> From: Alexandre Belloni <alexandre.belloni at bootlin.com>
>
> The hour and minute registers will rollover before the multiplication to
> convert to a number of seconds can exceed an 32bit integer, there is no
> need to cast them.
>
> Reported-by: Dan Carpenter <error27 at gmail.com>
> Link: https://patch.msgid.link/20261002105946.8rdteIpO7uWGEcTlS65F8iSi4gsRoXi2kgq8FTSaDPA@z/
> Signed-off-by: Alexandre Belloni <alexandre.belloni at bootlin.com>
Reviewed-by: Linus Walleij <linusw at kernel.org>
Thanks for fixing this Alexandre!
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list