Re: [PATCH] Staging: leds: replace divide condition 'shift / 16' with 'shift >= 16'

From: Pavel Machek
Date: Thu Sep 26 2024 - 06:15:31 EST


On Sun 2024-09-22 17:40:19, Dipendra Khadka wrote:
> Smatch reported following:
> '''
> drivers/leds/leds-bcm6328.c:116 bcm6328_led_mode() warn: replace divide condition 'shift / 16' with 'shift >= 16'
> drivers/leds/leds-bcm6328.c:360 bcm6328_led() warn: replace divide condition 'shift / 16' with 'shift >= 16'
> '''
> Replacing 'shift / 16' with 'shift >= 16'.
>
> Signed-off-by: Dipendra Khadka <kdipendra88@xxxxxxxxx>

Reviewed-by: Pavel Machek <pavel@xxxxxx>

BR,
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.

Attachment: signature.asc
Description: PGP signature