Fix return value of reiserload
PATCH 1/1 Fix return value of reiserload
From: [email protected]
Subject: [U-Boot-Users] [PATCH] Fix return value of ext2load
Quoted 5 lines
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 --------------
common/cmd_reiser.c +2 -2
@@ -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, intsprintf (buf,"%lX" , filelen);setenv ("filesize" , buf); -return filelen; +return 0 ; } U_BOOT_CMD(