[U-Boot] [PATCH] tools: zynqimage: Clean up check_params
    Nathan Rossi 
    nathan at nathanrossi.com
       
    Tue Dec  8 15:44:43 CET 2015
    
    
  
Clean up the param checking, removing some code paths that will never
happen.
Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
Cc: Michal Simek <michal.simek at xilinx.com>
Cc: Tom Rini <trini at konsulko.com>
---
 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
    
    
More information about the U-Boot
mailing list