util/nvmutil: simplify setWord() with word() macro
There is nothing cooler than a macro. Signed-off-by: Leah Rowe <leah@libreboot.org>fsdg20230625
parent
7ab209d545
commit
6885200c8b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue