diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2015-12-09 00:44:43 +1000 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-12-18 13:15:57 +0100 |
commit | bc3660503588b0cb780e5fc1797393127425149c (patch) | |
tree | 80d2d4efa5184aa768f9cbc5bba30478bea33e48 /tools | |
parent | f0b567bf0a0f271e60bcd63f49dd54599aa56a4f (diff) | |
download | u-boot-imx-bc3660503588b0cb780e5fc1797393127425149c.zip u-boot-imx-bc3660503588b0cb780e5fc1797393127425149c.tar.gz u-boot-imx-bc3660503588b0cb780e5fc1797393127425149c.tar.bz2 |
tools: zynqimage: Clean up check_params
Clean up the param checking, removing some code paths that will never
happen.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Tom Rini <trini@konsulko.com>
Reported-by: Coverity (CID 133251)
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/zynqimage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/zynqimage.c b/tools/zynqimage.c index 25f558d..c43bd5d 100644 --- a/tools/zynqimage.c +++ b/tools/zynqimage.c @@ -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) |