Just some comments and nits. We allow up to 112 chars per line
if it increases readability. I think that's the case for all the
prematurely wrapped lines here.
Patch set 1:Code-Review +1
View Change
3 comments:
File cbtable.c:
Patch Set #1, Line 231: addr
Can't we just use `offset`? It seems to be the better name. I was confused
by `addr` in about every other line mentioning it below.
Patch Set #1, Line 255: return NULL;
Why not continue with the original base?
It seems inconsistent because we continue searching if lb_header_valid() &&
!lb_table_valid() but not if lb_header_valid() && "bad length/mapping"?
Patch Set #1, Line 259: head = (struct lb_header *)(((char *)base) + addr);
Move this inside the `if` so it becomes clear that it's for the
updated `base`?
To view, visit change 37240. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I43705c19dd7c816098d03f528bde6f180c4c8f24
Gerrit-Change-Number: 37240
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Aaron Durbin <adurbin@chromium.org>
Gerrit-Reviewer: Daniel Kurtz <djkurtz@google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer@coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Mon, 09 Dec 2019 15:41:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment