diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-12-11 13:51:38 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-10 14:18:26 -0500 |
commit | 5819466dc1d2856afa84188745eaa5f415ee08cb (patch) | |
tree | 6798c8ab6c42d8934999d60fbb956da95ec536af /tools | |
parent | 6478a7ee3bae03bab4d9e092d91157a75d9fcf24 (diff) | |
download | u-boot-5819466dc1d2856afa84188745eaa5f415ee08cb.zip u-boot-5819466dc1d2856afa84188745eaa5f415ee08cb.tar.gz u-boot-5819466dc1d2856afa84188745eaa5f415ee08cb.tar.bz2 |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fit_image.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index 114df5a..6aa4b1c 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -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( |