Attention is currently required from: Jason Glenesk, Raul Rangel, Martin Roth, Furquan Shaikh, Marshall Dawson, Patrick Rudolph, Felix Held.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49335 )
Change subject: cbfs: Remove prog_locate() for stages and rmodules
......................................................................
Patch Set 15:
(1 comment)
File src/lib/cbfs.c:
https://review.coreboot.org/c/coreboot/+/49335/comment/f706d308_3f1876c1
PS15, Line 398: if ((err = cbfs_boot_lookup(prog_name(pstage), false, &mdata, &rdev)))
Should we disable this check in checkpatch?
In my opinion, yes. I find that this construct can be good for readability in some situations (particularly when used with `while` which checkpatch doesn't flag, but if the `while` version is allowed I see no reason why the `if` shouldn't be).
(While we're at it I feel we could also disable UNNECESSARY_ELSE, I don't really see a reason to aggressively disallow that. I think having that else can make things more readable for simple one-or-the-other functions like https://review.coreboot.org/plugins/gitiles/coreboot/+/refs/heads/master/src...).
--
To view, visit
https://review.coreboot.org/c/coreboot/+/49335
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia600e55f77c2549a00e2606f09befc1f92594a3a
Gerrit-Change-Number: 49335
Gerrit-PatchSet: 15
Gerrit-Owner: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Jason Glenesk
jason.glenesk@gmail.com
Gerrit-Reviewer: Marshall Dawson
marshalldawson3rd@gmail.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Martin Roth
martinroth@google.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Attention: Jason Glenesk
jason.glenesk@gmail.com
Gerrit-Attention: Raul Rangel
rrangel@chromium.org
Gerrit-Attention: Martin Roth
martinroth@google.com
Gerrit-Attention: Furquan Shaikh
furquan@google.com
Gerrit-Attention: Marshall Dawson
marshalldawson3rd@gmail.com
Gerrit-Attention: Patrick Rudolph
siro@das-labor.org
Gerrit-Attention: Felix Held
felix-coreboot@felixheld.de
Gerrit-Comment-Date: Wed, 10 Mar 2021 23:30:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: build bot (Jenkins)
no-reply@coreboot.org
Comment-In-Reply-To: Martin Roth
martinroth@google.com
Gerrit-MessageType: comment