util/nvmutil: clean up set_word

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-06 13:28:51 +00:00
parent feee6a728f
commit c7409cce03
+2 -2
View File
@@ -628,8 +628,8 @@ set_word(size_t pos16, int p, uint16_t val16)
check_bound((ssize_t)pos16, p);
pos = get_word_pos(pos16, p);
buf[pos++] = (uint8_t)(val16 & 0xff);
buf[pos] = (uint8_t)(val16 >> 8);
buf[pos] = (uint8_t)(val16 & 0xff);
buf[pos + 1] = (uint8_t)(val16 >> 8);
part_modified[p] = 1;
}