]> git.sur5r.net Git - u-boot/commitdiff
mkimage: Drop premature setting of params.fit_image_type
authorSimon Glass <sjg@chromium.org>
Thu, 30 Jun 2016 16:52:10 +0000 (10:52 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:27 +0000 (18:22 -0400)
There is no need to set params.fit_image_type while parsing the arguments.
It is set up later anyway.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/mkimage.c

index a36c031159f1c156749b1207759016090a570b38..76ae09e2b7f0873c33357a48d578630653c945a8 100644 (file)
@@ -197,7 +197,6 @@ static void process_args(int argc, char **argv)
                         * The flattened image tree (FIT) format
                         * requires a flattened device tree image type
                         */
-                       params.fit_image_type = params.type;
                        params.type = IH_TYPE_FLATDT;
                        params.fflag = 1;
                        break;