util/nvmutil: tidy up set_mac_byte

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-07 02:05:57 +00:00
parent 4619dad0b7
commit 90bd395cb1
+1 -2
View File
@@ -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);
} }