提交 bc366050 编写于 作者: N Nathan Rossi 提交者: Michal Simek

tools: zynqimage: Clean up check_params

Clean up the param checking, removing some code paths that will never
happen.
Signed-off-by: NNathan Rossi <nathan@nathanrossi.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Tom Rini <trini@konsulko.com>
Reported-by: Coverity (CID 133251)
Reviewed-by: NTom Rini <trini@konsulko.com>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 f0b567bf
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册