Indeed, it is more "conformable" to have the 'else' branch here.

What I'm concerned about is if we can argue that the code *is
generally better* with the else removed (that `continue` aside)
and make that a rule. Without a rule, somebody could just push
another patch that adds the else back...

In other words, "what does this fix?".

Actually, I agree to the removal of `else` in all three patches.
But without a rule...

Is there any compiler warning, or how did you spot these?

View Change

1 comment:

To view, visit change 33343. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ib43a8c186c34c85f964df648564fa7f5aef10412
Gerrit-Change-Number: 33343
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas@noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: HAOUAS Elyes <ehaouas@noos.fr>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Mon, 10 Jun 2019 09:55:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: HAOUAS Elyes <ehaouas@noos.fr>
Comment-In-Reply-To: Angel Pons <th3fanbus@gmail.com>
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Gerrit-MessageType: comment