Commit 67973fb4 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

fiptool: remove always true conditional



The conditional

  if (desc != NULL)
          ...

is always true here because we assert it 6 lines above:

  assert(desc != NULL);

Remove the if-conditional and concatenate the printf() calls.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 40866aaf
......@@ -554,11 +554,9 @@ static int info_cmd(int argc, char *argv[])
assert(desc != NULL);
printf("%s: ", desc->name);
image_size = image->size;
printf("offset=0x%llX, size=0x%llX",
printf("offset=0x%llX, size=0x%llX, cmdline=\"--%s\"",
(unsigned long long)image_offset,
(unsigned long long)image_size);
if (desc != NULL)
printf(", cmdline=\"--%s\"",
(unsigned long long)image_size,
desc->cmdline_name);
if (verbose) {
unsigned char md[SHA256_DIGEST_LENGTH];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment