]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/mkimage.c
tools/mkimage: Remove duplicate line of code
[karo-tx-uboot.git] / tools / mkimage.c
index 6826eae7710ce73280daaff6e3fe76ee5d294fe7..1bed93360e8645dd6c2ea22bd6d3b8ce322686c7 100644 (file)
@@ -229,15 +229,13 @@ main (int argc, char **argv)
                        case 'f':
                                if (--argc <= 0)
                                        usage ();
-                               params.type = IH_TYPE_FLATDT;
-                               params.datafile = *++argv;
-                               params.fflag = 1;
-
                                /*
                                 * The flattened image tree (FIT) format
                                 * requires a flattened device tree image type
                                 */
                                params.type = IH_TYPE_FLATDT;
+                               params.datafile = *++argv;
+                               params.fflag = 1;
                                goto NXTARG;
                        case 'n':
                                if (--argc <= 0)