mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: simplify setWord() with word() macro
There is nothing cooler than a macro. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -327,10 +327,8 @@ void
|
||||
setWord(int pos16, int partnum, uint16_t val16)
|
||||
{
|
||||
gbeFileModified = 1;
|
||||
if (word(pos16, partnum) == val16)
|
||||
return;
|
||||
buf16[pos16 + (partnum << 11)] = val16;
|
||||
nvmPartModified[partnum] = 1;
|
||||
if (word(pos16, partnum) != val16)
|
||||
nvmPartModified[partnum] = 1 | (word(pos16, partnum) = val16);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user