summaryrefslogtreecommitdiff
path: root/tools/zynqimage.c
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2015-12-09 00:44:43 +1000
committerMichal Simek <michal.simek@xilinx.com>2015-12-18 13:15:57 +0100
commitbc3660503588b0cb780e5fc1797393127425149c (patch)
tree80d2d4efa5184aa768f9cbc5bba30478bea33e48 /tools/zynqimage.c
parentf0b567bf0a0f271e60bcd63f49dd54599aa56a4f (diff)
downloadu-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/zynqimage.c')
-rw-r--r--tools/zynqimage.c3
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)