summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-09 17:06:50 +0200
committerNico Huber <nico.h@gmx.de>2019-06-21 15:07:47 +0000
commita67ac58dd7d62de17b7d1d8a13b327dd825502f6 (patch)
treed4947a65cccf6a2c166bfc173db0cd36925d9875
parentec819d6ccc2575f2b600b2570bb20ffde91e1bbf (diff)
downloadflashrom-a67ac58dd7d62de17b7d1d8a13b327dd825502f6.tar.gz
flashrom-a67ac58dd7d62de17b7d1d8a13b327dd825502f6.tar.bz2
flashrom-a67ac58dd7d62de17b7d1d8a13b327dd825502f6.zip
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> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33344 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--dmi.c3
1 files changed, 1 insertions, 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] == '#');