mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +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;
|
||||
|
||||
if (mac_str_pos < 15) {
|
||||
separator = mac_str[mac_str_pos + 2];
|
||||
if (mac_str[mac_str_pos + 2] != ':')
|
||||
if ((separator = mac_str[mac_str_pos + 2]) != ':')
|
||||
err(EINVAL, "Invalid MAC address separator '%c'",
|
||||
separator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user