diff options
author | 2020-01-24 17:54:07 +0100 | |
---|---|---|
committer | 2020-02-26 21:49:39 +0100 | |
commit | b43a8f01fccbfdddbc7f9b2bbad11b7db3fda4e1 (patch) | |
tree | 1103db2b307b668e281a54ed0a98b90305d84981 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | leds: add SGI IP30 led support (diff) | |
download | linux-dev-b43a8f01fccbfdddbc7f9b2bbad11b7db3fda4e1.tar.xz linux-dev-b43a8f01fccbfdddbc7f9b2bbad11b7db3fda4e1.zip |
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: Uwe Kleine-König <uwe@kleine-koenig.org>
Tested-by: Jeff LaBundy <jeff@labundy.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions