From bc3660503588b0cb780e5fc1797393127425149c Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Wed, 9 Dec 2015 00:44:43 +1000 Subject: [PATCH] tools: zynqimage: Clean up check_params Clean up the param checking, removing some code paths that will never happen. Signed-off-by: Nathan Rossi Cc: Michal Simek Cc: Tom Rini Reported-by: Coverity (CID 133251) Reviewed-by: Tom Rini Signed-off-by: Michal Simek --- tools/zynqimage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/zynqimage.c b/tools/zynqimage.c index 25f558d24c..c43bd5d488 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.25.1