提交 fbc1c8f6 编写于 作者: P Peter Tyser 提交者: Wolfgang Denk

tools/mkimage: Remove duplicate line of code

Recent commits 1a99de2c and
6a590c5f both fixed the same bug in the
same manner.  Unfortunately git was "smart" enough to merge both changes
which resulted in some duplicate code.
Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>

Reordered code and comment a bit.
Signed-off-by: NWolfgang Denk <wd@denx.de>
上级 df002fa6
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册