Re: [PATCH] gpio: gpio-exar: replace division condition with direct comparison

From: Suraj Sonawane
Date: Thu Nov 14 2024 - 03:55:56 EST


On 13/11/24 21:01, Bartosz Golaszewski wrote:
From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>


On Wed, 13 Nov 2024 01:46:59 +0530, Suraj Sonawane wrote:
Fix an issue detected by the Smatch tool:

drivers/gpio/gpio-exar.c:52 exar_offset_to_sel_addr() warn:
replace divide condition 'pin / 8' with 'pin >= 8'
drivers/gpio/gpio-exar.c:62 exar_offset_to_lvl_addr() warn:
replace divide condition 'pin / 8' with 'pin >= 8'

[...]

Applied, thanks!

[1/1] gpio: gpio-exar: replace division condition with direct comparison
commit: 8f0aa162bcf818631e845c2e6c090c7b3c64fd9d

Best regards,
Thank you for applying this patch!