diff options
author | Théo Lebrun <[email protected]> | 2024-02-28 12:28:08 +0100 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2024-02-29 10:26:09 +0100 |
commit | dfeaf5e7f3389f975ed96297cb0faff1ca5ad060 (patch) | |
tree | 19d46be1efadc159a5e726fcfa6452307cf36eae /tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions