Skip to content
Commit b43a8f01 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Pavel Machek
Browse files

leds: pwm: simplify if condition



.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: default avatarUwe Kleine-König <uwe@kleine-koenig.org>
Tested-by: default avatarJeff LaBundy <jeff@labundy.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 64d7e231
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment