From: ito at mlb.co.jp Date: Tue, 04 Apr 2006 16:27:37 +0900 (JST) Subject: [U-Boot-Users] [PATCH] Fix return value of reiserload Message-ID: <20060404.162737.44098761.ito@mlb.co.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: ito@mlb.co.jp Subject: [U-Boot-Users] [PATCH] Fix return value of ext2load > I like to do > > if ext2load ide 0 80400000 $bootfile; then bootm; fi > > but the return value of ext2load is always false. same bug is in reiserload. and default value of patition no is set to 1. which value is same as ext2load. -------- Hiroshi Ito Media Lab. Inc., URL http://www.mlb.co.jp ( Sorry, Japanese only. ) TEL +81-3-5294-7255 FAX +81-3-5294-7256 -------------- next part -------------- diff --git a/common/cmd_reiser.c b/common/cmd_reiser.c index 508ffcb..048901f 100644 --- a/common/cmd_reiser.c +++ b/common/cmd_reiser.c @@ -150,7 +150,7 @@ int do_reiserload (cmd_tbl_t *cmdtp, int { char *filename = NULL; char *ep; - int dev, part = 0; + int dev, part = 1; ulong addr = 0, part_length, filelen; disk_partition_t info; block_dev_desc_t *dev_desc = NULL; @@ -263,7 +263,7 @@ int do_reiserload (cmd_tbl_t *cmdtp, int sprintf(buf, "%lX", filelen); setenv("filesize", buf); - return filelen; + return 0; } U_BOOT_CMD(