[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <172609494901.1572134.91739607625534933.b4-ty@bootlin.com>
Date: Thu, 12 Sep 2024 00:49:17 +0200
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
To: Abhishek Tamboli <abhishektamboli9@...il.com>
Cc: linux-rtc@...r.kernel.org, linux-kernel@...r.kernel.org,
skhan@...uxfoundation.org, rbmarliere@...il.com,
linux-kernel-mentees@...ts.linuxfoundation.org
Subject: Re: [PATCH] rtc: m48t59: Remove division condition with direct
comparison
On Fri, 09 Aug 2024 21:26:31 +0530, Abhishek Tamboli wrote:
> Replace 'year / 100' with a direct comparison 'year >= 100'
> in m48t59_rtc_set_time() function. Improve the code clarity
> and eliminate division overhead.
>
> Fix the following smatch warning:
> drivers/rtc/rtc-m48t59.c:135 m48t59_rtc_set_time() warn:
> replace divide condition 'year / 100' with 'year >= 100'
>
> [...]
Applied, thanks!
[1/1] rtc: m48t59: Remove division condition with direct comparison
https://git.kernel.org/abelloni/c/60a06efc56d7
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists