Looks good, thanks for the update. Alas, I seem to have
found an issue that I missed earlier.
Patch set 26:Code-Review +1
View Change
2 comments:
File ni845x_spi.c:
Patch Set #26, Line 249: i >= 0
Did you test this with unexpected inputs, e.g. command line argument of 1.0V?
Didn't see this earlier, but it looks like we'd end up with `i = -1`. But
the code after this loops assumes that we stop at 0 (i.e. `i` is always a
valid array index). So the last iteration should be for `i == 1`, i.e.
the condition should be `i > 0`.
Patch Set #26, Line 440:
strlen(ignore_io_voltage_limits_str) == 3
&& strstr("yes", ignore_io_voltage_limits_str) == 0
This should be the same as
strcmp(ignore_io_voltage_limits_str, "yes") == 0
no?
To view, visit change 25683. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I9477b6f0193bfdf20bbe63421a7fb97b597ec549
Gerrit-Change-Number: 25683
Gerrit-PatchSet: 26
Gerrit-Owner: David Hendricks <david.hendricks@gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com>
Gerrit-Reviewer: Miklós Márton <martonmiklosqdev@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Miklós Márton <martonmiklosqdev@gmail.com>
Gerrit-CC: Stefan T <stefan.tauner@gmx.at>
Gerrit-Comment-Date: Tue, 08 Oct 2019 09:44:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment