mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 09:32:27 +02:00
util/nvmutil: tidy up set_mac_byte
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -487,8 +487,7 @@ set_mac_byte(size_t mac_byte_pos)
|
|||||||
char separator;
|
char separator;
|
||||||
|
|
||||||
if (mac_str_pos < 15) {
|
if (mac_str_pos < 15) {
|
||||||
separator = mac_str[mac_str_pos + 2];
|
if ((separator = mac_str[mac_str_pos + 2]) != ':')
|
||||||
if (mac_str[mac_str_pos + 2] != ':')
|
|
||||||
err(EINVAL, "Invalid MAC address separator '%c'",
|
err(EINVAL, "Invalid MAC address separator '%c'",
|
||||||
separator);
|
separator);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user