util/nvmutil: minor code cleanup

fsdg20230625
Leah Rowe 2023-04-05 21:51:06 +01:00
parent 8e5a8145b2
commit 0c79a9a82e
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ parseMacAddress(const char *strMac, uint16_t *mac)
int i, nib, byte;
uint8_t val8;
uint16_t val16;
uint64_t total = 0;
uint64_t total;
if (strnlen(strMac, 20) != 17)
return -1;
@ -224,7 +224,7 @@ parseMacAddress(const char *strMac, uint16_t *mac)
val16 = val8;
if ((byte % 2) ^ 1)
byteswap((uint8_t *) &val16);
val16 <<= 8;
val16 <<= 4 * (nib ^ 1);
mac[byte >> 1] |= val16;
}