diff options
| author | Abhishek Tamboli <[email protected]> | 2024-08-09 15:56:31 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2024-09-11 22:36:53 +0000 |
| commit | 60a06efc56d7d336d13fae58f9e90c8a4e21619e (patch) | |
| tree | 2e304e5fecf56ed8c2df953f078ad2aa37d292f4 /net/unix/sysctl_net_unix.c | |
| parent | rtc: at91sam9: fix OF node leak in probe() error path (diff) | |
| download | kernel-60a06efc56d7d336d13fae58f9e90c8a4e21619e.tar.gz kernel-60a06efc56d7d336d13fae58f9e90c8a4e21619e.zip | |
rtc: m48t59: Remove division condition with direct comparison
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'
Signed-off-by: Abhishek Tamboli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
