mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: clean up set_word
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user