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:
parent
ec819d6ccc
commit
a67ac58dd7
3
dmi.c
3
dmi.c
@ -320,9 +320,8 @@ static char *get_dmi_string(const char *string_name)
|
|||||||
msg_perr("DMI pipe read error\n");
|
msg_perr("DMI pipe read error\n");
|
||||||
pclose(dmidecode_pipe);
|
pclose(dmidecode_pipe);
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
|
||||||
answerbuf[0] = 0; /* Hit EOF */
|
|
||||||
}
|
}
|
||||||
|
answerbuf[0] = 0; /* Hit EOF */
|
||||||
}
|
}
|
||||||
} while (answerbuf[0] == '#');
|
} while (answerbuf[0] == '#');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user