diff options
author | Andi Kleen <ak@suse.de> | 2004-11-01 23:07:02 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-01 23:07:02 -0800 |
commit | 99770da703ef1cbe32376aaa1b945af80acd3c82 (patch) | |
tree | 90c902fc5d268564dde311645832072715eb99d4 /init | |
parent | c84fe44eb2513c10019e52ea677f8b91581b05d7 (diff) | |
download | history-99770da703ef1cbe32376aaa1b945af80acd3c82.tar.gz |
[PATCH] Print real error when initramfs gunzip failed
Print the real error when initramfs gunzip failed. gunzip already sets up
message correctly.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/initramfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 20bd855f6f8b07..3b233f87f1df83 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -445,8 +445,7 @@ char * __init unpack_to_rootfs(char *buf, unsigned len, int check_only) bytes_out = 0; crc = (ulg)0xffffffffL; /* shift register contents */ makecrc(); - if (gunzip()) - message = "ungzip failed"; + gunzip(); if (state != Reset) error("junk in gzipped archive"); this_header = saved_offset + inptr; |