HAOUAS Elyes has uploaded this change for review.

View Change

dmi.c: Remove unneeded 'else'

'else' is not needed after a 'break' or 'return'.

Change-Id: I71ab1fec98c2b61d73aeb646ddfc810662d4136d
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
---
M dmi.c
1 file changed, 1 insertion(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/44/33344/1
diff --git a/dmi.c b/dmi.c
index 79321ce..c32a8da 100644
--- a/dmi.c
+++ b/dmi.c
@@ -320,9 +320,8 @@
msg_perr("DMI pipe read error\n");
pclose(dmidecode_pipe);
return NULL;
- } else {
- answerbuf[0] = 0; /* Hit EOF */
}
+ answerbuf[0] = 0; /* Hit EOF */
}
} while (answerbuf[0] == '#');


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

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I71ab1fec98c2b61d73aeb646ddfc810662d4136d
Gerrit-Change-Number: 33344
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas@noos.fr>
Gerrit-MessageType: newchange