summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-06 17:01:48 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-06 17:01:48 +0000
commit6023d17b6e37d0b95680c55aea85c48973e0cace (patch)
tree40511b8fd8ba3546d72c6afecb4a519f5d33fb02 /util
parent199dbad96dcec34afe150098e5807a744f8d42de (diff)
util/nvmutil: fix parenthesis warning in GCC
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 7500739d..fa43c886 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -408,10 +408,10 @@ set_mac_nib(int mac_pos, int nib)
mac[mac_pos + nib]);
/* If random, ensure that local/unicast bits are set */
- if (byte == 0 && nib == 1 &&
- (mac[mac_pos + nib] == '?') ||
+ if ((byte == 0) && (nib == 1) &&
+ ((mac[mac_pos + nib] == '?') ||
(mac[mac_pos + nib] == 'x') ||
- (mac[mac_pos + nib] == 'X')) /* random */
+ (mac[mac_pos + nib] == 'X'))) /* random */
h = (h & 0xE) | 2; /* local, unicast */
/* Store the new nibble as part of the new MAC address */