Commit 8da1ef604427f9cb250e8428618e69211c9f16e6

Authored by Biwen Li
Committed by Priyanka Jain
1 parent ba3c0138d4

board: freescale: vid.c: add parantheses to fix build warning

Add prarantheses to fix build warning as follows,
  if (!strict_strtoul(argv[1], 10, &override))
  ^~
  board/freescale/common/vid.c:976:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the if
  if (ret < 0)

Signed-off-by: Biwen Li <biwen.li@nxp.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

board/freescale/common/vid.c
... ... @@ -971,11 +971,11 @@
971 971 if (argc < 2)
972 972 return CMD_RET_USAGE;
973 973  
974   - if (!strict_strtoul(argv[1], 10, &override))
  974 + if (!strict_strtoul(argv[1], 10, &override)) {
975 975 ret = adjust_vdd(override); /* the value is checked by callee */
976 976 if (ret < 0)
977 977 return CMD_RET_FAILURE;
978   - else
  978 + } else
979 979 return CMD_RET_USAGE;
980 980 return 0;
981 981 }