[U-Boot] [u-boot][PATCH] tftp: Remove command repetition.

Marek Belisko marek.belisko at open-nandra.com
Sun Aug 14 21:08:31 CEST 2011


Lot of commands in u-boot have repeat command flag but not all are
very usefull. Remove this flag for tftp to avoid repeated file download
when user press enter.

Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
---
 common/cmd_net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/cmd_net.c b/common/cmd_net.c
index 973fa21..522b435 100644
--- a/common/cmd_net.c
+++ b/common/cmd_net.c
@@ -47,7 +47,7 @@ int do_tftpb (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 }
 
 U_BOOT_CMD(
-	tftpboot,	3,	1,	do_tftpb,
+	tftpboot,	3,	0,	do_tftpb,
 	"boot image via network using TFTP protocol",
 	"[loadAddress] [[hostIPaddr:]bootfilename]"
 );
-- 
1.7.4.1



More information about the U-Boot mailing list