Re: [PATCH v2] rtc: ftrtc010: fix cast
From: Linus Walleij
Date: Wed Oct 07 2026 - 08:44:51 EST
On Mon, Oct 5, 2026 at 1:15 PM <alexandre.belloni@xxxxxxxxxxx> wrote:
> From: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
>
> 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@xxxxxxxxx>
> Link: https://patch.msgid.link/20261002105946.8rdteIpO7uWGEcTlS65F8iSi4gsRoXi2kgq8FTSaDPA@z/
> Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Thanks for fixing this Alexandre!
Yours,
Linus Walleij