diff options
author | Théo Lebrun <theo.lebrun@bootlin.com> | 2024-02-28 12:28:08 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-02-29 10:26:09 +0100 |
commit | dfeaf5e7f3389f975ed96297cb0faff1ca5ad060 (patch) | |
tree | 19d46be1efadc159a5e726fcfa6452307cf36eae /tools/perf/scripts/python/export-to-postgresql.py | |
parent | af76822683bcd72a746ea9f16d1e845852dbaf90 (diff) |
pinctrl: nomadik: minimise indentation in probe
nmk_pinctrl_probe() iterates over each GPIO block. Use an early
conditional continue to skip to the next iteration rather than indent
all the loop code block.
Do not change code logic. The block is changed from:
for (i = 0; i < NMK_MAX_BANKS; i++) {
x = of_parse_phandle(...);
if (x) {
... do work ...
}
}
To:
for (i = 0; i < NMK_MAX_BANKS; i++) {
x = of_parse_phandle(...);
if (!x)
continue;
... do work ...
}
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20240228-mbly-gpio-v2-10-3ba757474006@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions