summaryrefslogtreecommitdiff
path: root/lib_i386
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-03-12 10:14:38 +0100
committerMarian Balakowicz <m8@semihalf.com>2008-03-12 10:14:38 +0100
commitd985c8498c4e47095820da97aa722381d39172c5 (patch)
tree213d5b778f1a1a66aa296d90513089759120fe56 /lib_i386
parentc87796483bc7c2900470dc747c367f602577608d (diff)
downloadu-boot-d985c8498c4e47095820da97aa722381d39172c5.tar.gz
u-boot-d985c8498c4e47095820da97aa722381d39172c5.tar.bz2
u-boot-d985c8498c4e47095820da97aa722381d39172c5.zip
[new uImage] Remove unnecessary arguments passed to ramdisk routines
boot_get_ramdisk() and image_get_ramdisk() do not need all cmdtp, flag, argc and argv arguments. Simplify routines definition. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_i386')
-rw-r--r--lib_i386/bootm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib_i386/bootm.c b/lib_i386/bootm.c
index 76bcf6cd85..b4a52fa21d 100644
--- a/lib_i386/bootm.c
+++ b/lib_i386/bootm.c
@@ -39,9 +39,12 @@ void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
ulong initrd_start, initrd_end;
ulong ep;
image_header_t *hdr;
+ int ret;
- boot_get_ramdisk (cmdtp, flag, argc, argv, images,
- IH_ARCH_I386, &initrd_start, &initrd_end);
+ ret = boot_get_ramdisk (argc, argv, images, IH_ARCH_I386,
+ &initrd_start, &initrd_end);
+ if (ret)
+ do_reset (cmdtp, flag, argc, argv);
if (images->legacy_hdr_valid) {
hdr = images->legacy_hdr_os;