summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2019-10-04 18:47:24 +0200
committerNico Huber <nico.h@gmx.de>2019-10-05 23:27:00 +0000
commit92b17a52a3aaec7e87aabfc6ce5f05726d1000c0 (patch)
tree1f2789021c48219aa78b0a2fdea8b1d7fb288353 /flashchips.c
parent961f4a1f29787cbb6bd9a8a43b6ac4f3f0d024c0 (diff)
downloadflashrom-92b17a52a3aaec7e87aabfc6ce5f05726d1000c0.tar.gz
flashrom-92b17a52a3aaec7e87aabfc6ce5f05726d1000c0.tar.bz2
flashrom-92b17a52a3aaec7e87aabfc6ce5f05726d1000c0.zip
board_enable: Work around -Wtype-limits issue
In case of an empty `board_matches` list (i.e. on non-x86), we checked if the `unsigned i` is smaller 0. Shuffling the computation avoids that problem. Change-Id: I636d73c920a7b7e7507eafe444bab8236d7acb67 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/35801 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'flashchips.c')
0 files changed, 0 insertions, 0 deletions