summaryrefslogtreecommitdiff
path: root/util/sbase/grep.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-03 00:51:10 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-03 01:07:59 +0000
commit566ae72ca3c86b31b7379204877cdbd726f61b10 (patch)
tree5fbe995db4d4067b6da251852a7b24fd23595328 /util/sbase/grep.c
parentdfbb3c5d9e7a5b7baf405e694f64c8f3642d8b40 (diff)
util/nvmutil: remove variable nvmPartChanged
pointless optimisation. we know that when a user requests an operation that would write, it will probably result in a change. therefore, this change is the real optimisation. to avoid writing the same half of a file twice, when using cmd_copy, we check (in writeGbe) whether gbe part 0 and 1 are the same; if they are, then we only loop once. this is important, because otherwise we would call swap() twice. this means that the optimisations in cmd_copy and cmd_swap must be removed. the point of this and other changes is to improve memory safety in nvmutil, so frivolous use of pointers has to go. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/sbase/grep.c')
0 files changed, 0 insertions, 0 deletions