Clean up the param checking, removing some code paths that will never happen.
Signed-off-by: Nathan Rossi <[email protected]> Cc: Michal Simek <[email protected]> Cc: Tom Rini <[email protected]> --- tools/zynqimage.c | 3 +-- 1 file changed, 1 insertion(+), 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) -- 2.6.2 _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

