diff options
| author | Nathan Rossi <[email protected]> | 2015-12-09 00:44:43 +1000 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2015-12-18 13:15:57 +0100 |
| commit | bc3660503588b0cb780e5fc1797393127425149c (patch) | |
| tree | 80d2d4efa5184aa768f9cbc5bba30478bea33e48 | |
| parent | f0b567bf0a0f271e60bcd63f49dd54599aa56a4f (diff) | |
tools: zynqimage: Clean up check_params
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]>
Reported-by: Coverity (CID 133251)
Reviewed-by: Tom Rini <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
| -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 25f558d24c7..c43bd5d4882 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) |
