diff options
author | Leah Rowe <leah@libreboot.org> | 2023-06-14 10:56:11 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-06-14 10:56:11 +0100 |
commit | c285dbd37266b9ab0bcbcd994e58cf45a3fb492f (patch) | |
tree | ff0da7af0b3a309617990a008ffc6f356cd4a117 | |
parent | b508245451b71b3443fa3202f3863a6de731e9c8 (diff) |
util/nvmutil: reduced indentation inside loop
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | util/nvmutil/nvmutil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 2af10373..abd788fc 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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(); } } |