From a67ac58dd7d62de17b7d1d8a13b327dd825502f6 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sun, 9 Jun 2019 17:06:50 +0200 Subject: dmi.c: Remove unneeded 'else' 'else' is not needed after a 'break' or 'return'. Change-Id: I71ab1fec98c2b61d73aeb646ddfc810662d4136d Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/flashrom/+/33344 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- dmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dmi.c b/dmi.c index 79321ce20..c32a8da1a 100644 --- a/dmi.c +++ b/dmi.c @@ -320,9 +320,8 @@ static char *get_dmi_string(const char *string_name) 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] == '#'); -- cgit v1.2.3