diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mkimage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index ae01cb1e83..8f8b6df37c 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -311,8 +311,7 @@ NXTARG: ; exit (retval); } - if (!params.type == IH_TYPE_MULTI || - !params.type == IH_TYPE_SCRIPT) { + if ((params.type != IH_TYPE_MULTI) && (params.type != IH_TYPE_SCRIPT)) { dfd = open(params.datafile, O_RDONLY | O_BINARY); if (dfd < 0) { fprintf(stderr, "%s: Can't open %s: %s\n", |