diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-07 02:05:57 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-07 02:05:57 +0000 |
| commit | 90bd395cb101ca32566b68b6deafe25797d1a24e (patch) | |
| tree | 872cd25b3bb17cfb7145995761206079830b9ce4 /util | |
| parent | 4619dad0b7166c4b0a45fbadb7394946b79f84cb (diff) | |
util/nvmutil: tidy up set_mac_byte
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 31392849..a3b176f5 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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); } |
