summaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2023-03-10 11:58:03 +0100
committerTom Rini <trini@konsulko.com>2023-03-30 15:09:59 -0400
commit19213d7a65e9e3f8cfd0852599170636c894169e (patch)
treecd28b046cfbc8869c74b654a8498b3310b8784c3 /include/pci.h
parent732b0825475c1a2466a6abf6e223b2a77af011f2 (diff)
downloadu-boot-19213d7a65e9e3f8cfd0852599170636c894169e.tar.gz
u-boot-19213d7a65e9e3f8cfd0852599170636c894169e.tar.bz2
u-boot-19213d7a65e9e3f8cfd0852599170636c894169e.zip
sysinfo: gpio: fix loop over DT "revisions" array
There can certainly be a lot more elements in the "revisions" (and "names") arrays than there are gpios used to form the trinary number we're searching for; we simply don't know the array size up-front. Nor do we need to, because the loop body already knows to recognize -EOVERFLOW as "not that many elements present" (and we have a test that specifically ensures that dev_read_u32_index() returns exactly that). So just drop the i < priv->gpio_num condition. While in here, fix the weird placement of the default: keyword. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'include/pci.h')
0 files changed, 0 insertions, 0 deletions