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,12 +554,10 @@ static int info_cmd(int argc, char *argv[]) ...@@ -554,12 +554,10 @@ static int info_cmd(int argc, char *argv[])
assert(desc != NULL); assert(desc != NULL);
printf("%s: ", desc->name); printf("%s: ", desc->name);
image_size = image->size; 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_offset,
(unsigned long long)image_size); (unsigned long long)image_size,
if (desc != NULL) desc->cmdline_name);
printf(", cmdline=\"--%s\"",
desc->cmdline_name);
if (verbose) { if (verbose) {
unsigned char md[SHA256_DIGEST_LENGTH]; 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