diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-06-09 17:06:50 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-06-21 15:07:47 +0000 |
commit | a67ac58dd7d62de17b7d1d8a13b327dd825502f6 (patch) | |
tree | d4947a65cccf6a2c166bfc173db0cd36925d9875 | |
parent | ec819d6ccc2575f2b600b2570bb20ffde91e1bbf (diff) | |
download | flashrom-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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] == '#'); |