mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 18:41:05 +02:00
util/nvmutil: major cleanup
handle init in xstatus() it's now a singleton design also tidied up some other code also removed todo.c. bloat. will do all those anyway. too much change. i just kept touching the code until it looked good Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
void
|
||||
read_checksums(void)
|
||||
{
|
||||
struct xstate *x = xstatus();
|
||||
struct commands *cmd;
|
||||
struct xfile *f;
|
||||
struct xstate *x = xstatus(0, NULL);
|
||||
struct commands *cmd = &x->cmd[x->i];
|
||||
struct xfile *f = &x->f;
|
||||
|
||||
unsigned long _p;
|
||||
unsigned long _skip_part;
|
||||
@@ -39,9 +39,6 @@ read_checksums(void)
|
||||
unsigned char _num_invalid;
|
||||
unsigned char _max_invalid;
|
||||
|
||||
cmd = &x->cmd[x->i];
|
||||
f = &x->f;
|
||||
|
||||
f->part_valid[0] = 0;
|
||||
f->part_valid[1] = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user