diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-11-13 13:18:09 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-12-09 11:43:02 +0300 |
commit | 1d0f9e1e1e46939ae52804917647982b43754996 (patch) | |
tree | 53e673f338e43cb9dd45ea8709caf2f8f9883537 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e42617b825f8073569da76dc4510bfa019b1c35a (diff) | |
download | linux-1d0f9e1e1e46939ae52804917647982b43754996.tar.xz |
pinctrl: sh-pfc: Make legacy function GPIO handling less fragile
If there are no function GPIOs, sh_pfc_register_gpiochip() returns early
with a success indicator. This is fragile, as new code may be added
after the #ifdef block, which won't be executed in case of early return.
Invert the logic, so the code always continues until the end of the
function on success.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20191113101809.28600-1-geert+renesas@glider.be
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions