diff options
author | 2019-09-19 11:17:27 +0200 | |
---|---|---|
committer | 2020-06-02 15:50:52 +0200 | |
commit | cad0f2960675261584c14e8f0026cd67c60f4864 (patch) | |
tree | ac579132529a0c2e1ec5f374edbd412f012788b2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | pwm: img: Call pm_runtime_put() in pm_runtime_get_sync() failed case (diff) | |
download | wireguard-linux-cad0f2960675261584c14e8f0026cd67c60f4864.tar.xz wireguard-linux-cad0f2960675261584c14e8f0026cd67c60f4864.zip |
pwm: rockchip: Simplify rockchip_pwm_get_state()
The way state->enabled is computed is rather convoluted and hard to
read - both branches of the if() actually do the exact same thing. So
remove the if(), and further simplify "<boolean condition> ? true :
false" to "<boolean condition>".
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions