View Change
2 comments:
File cli_classic.c:
Patch Set #19, Line 619: fill_flash->chip->total_size * 1024
*nod* […]
I would go for flash_size(), keep things simple:
static inline size_t flash_size(const struct flashctx *);
File fmap.c:
Patch Set #19, Line 62: if (i == FMAP_STRLEN - 1) {
I suspect the intention here is to say that if we reach FMAP_STRLEN - 1 without quitting due to the […]
What I meant was that I'd have written a similar condition below
the loop. A common pattern, FWIW, for-loop + check if it run all
the way through.
But you are right, just leave it as is.
To view, visit change 23203. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0e7fad38ed79a84d41358e1f175c36d255786c12
Gerrit-Change-Number: 23203
Gerrit-PatchSet: 19
Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: David Hendricks <david.hendricks@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: Werner Zeh <werner.zeh@siemens.com>
Gerrit-Comment-Date: Fri, 24 Aug 2018 19:51:50 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No