util/nvmutil: reduced indentation inside loop

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-06-14 10:56:11 +01:00
parent b508245451
commit c285dbd372
1 changed files with 5 additions and 5 deletions

View File

@ -72,11 +72,11 @@ cmd_setmac(void)
if (invalidMacAddress(strMac, mac))
err(errno = ECANCELED, "Bad MAC address");
for (int partnum = 0; partnum < 2; partnum++) {
if (validChecksum(part = partnum)) {
for (int w = 0; w < 3; w++)
setWord(w, partnum, mac[w]);
cmd_setchecksum();
}
if (!validChecksum(part = partnum))
continue;
for (int w = 0; w < 3; w++)
setWord(w, partnum, mac[w]);
cmd_setchecksum();
}
}