On 14.10.21 10:44, Michael Adler wrote: > Signed-off-by: Michael Adler <[email protected]> > --- > tools/bg_setenv.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/tools/bg_setenv.c b/tools/bg_setenv.c > index c5def8d..0429c01 100644 > --- a/tools/bg_setenv.c > +++ b/tools/bg_setenv.c > @@ -554,16 +554,15 @@ static void dump_envs(void) > fprintf(stdout, " Config Partition #%d ", i); > } > BGENV *env = bgenv_open_by_index(i); > - if (env) { > - if (verbosity) { > - dump_env(env->data); > - } > - } else { > - fprintf(stderr, "Error, could not read environment " > + if (!env) { > + fprintf(stderr, "Error, could not read environment " > "for index %d\n", > i); > return; > } > + if (verbosity) { > + dump_env(env->data); > + } > bgenv_close(env); > } > } >
Thanks, applied, fixing up the whitespace error git reported. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/04336d0d-00b1-a0b1-466f-b2c73ae9c0d9%40siemens.com.
