Skip to content
Snippets Groups Projects
Commit bc366050 authored by Nathan Rossi's avatar Nathan Rossi Committed by Michal Simek
Browse files

tools: zynqimage: Clean up check_params


Clean up the param checking, removing some code paths that will never
happen.

Signed-off-by: default avatarNathan Rossi <nathan@nathanrossi.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Tom Rini <trini@konsulko.com>
Reported-by: Coverity (CID 133251)
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent f0b567bf
No related branches found
No related tags found
No related merge requests found
......@@ -212,8 +212,7 @@ static int zynqimage_check_params(struct image_tool_params *params)
return -1;
}
return !((params->lflag || params->dflag) ||
(params->dflag && params->eflag));
return !(params->lflag || params->dflag);
}
static int zynqimage_check_image_types(uint8_t type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment