mkimage: simplify fit_check_params()
fit_check_params() wants at least two of dflag, fflag, and lflag set. Simplify the logical constraint checking this. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
6478a7ee3b
commit
5819466dc1
@ -825,9 +825,9 @@ static int fit_check_params(struct image_tool_params *params)
|
||||
{
|
||||
if (params->auto_its)
|
||||
return 0;
|
||||
return ((params->dflag && (params->fflag || params->lflag)) ||
|
||||
(params->fflag && (params->dflag || params->lflag)) ||
|
||||
(params->lflag && (params->dflag || params->fflag)));
|
||||
return ((params->dflag && params->fflag) ||
|
||||
(params->fflag && params->lflag) ||
|
||||
(params->lflag && params->dflag));
|
||||
}
|
||||
|
||||
U_BOOT_IMAGE_TYPE(
|
||||
|
Loading…
Reference in New Issue
Block a user