1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

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>
This commit is contained in:
Elyes HAOUAS 2019-06-09 17:06:50 +02:00 committed by Nico Huber
parent ec819d6ccc
commit a67ac58dd7

3
dmi.c
View File

@ -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] == '#');