leds: pwm: simplify if condition
[ Upstream commit b43a8f01fccbfdddbc7f9b2bbad11b7db3fda4e1 ] .pwm_period_ns is an unsigned integer. So when led->pwm_period_ns > 0 is false, we now assign 0 to a value that is already 0, so it doesn't hurt and we can skip checking the actual value. Signed-off-by:Uwe Kleine-König <uwe@kleine-koenig.org> Tested-by:
Jeff LaBundy <jeff@labundy.com> Signed-off-by:
Pavel Machek <pavel@ucw.cz> Stable-dep-of: 76fe464c8e64 ("leds: pwm: Don't disable the PWM when the LED should be off") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment