[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.1.10.0808051834090.19032@localhost.localdomain>
Date: Tue, 5 Aug 2008 18:36:24 -0400 (EDT)
From: "Robert P. J. Day" <rpjday@...shcourse.ca>
To: trivial@...nel.org
cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [PATCH] Correct comment in identify_ramdisk_image() routine.
Correct the comment to reflect that a gzipped image will return zero,
not -1.
Signed-off-by: Robert P. J. Day <rpjday@...shcourse.ca>
---
the code is correct, it's only the comment that's wrong.
diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c
index fedef93..a7c748f 100644
--- a/init/do_mounts_rd.c
+++ b/init/do_mounts_rd.c
@@ -71,7 +71,7 @@ identify_ramdisk_image(int fd, int start_block)
sys_read(fd, buf, size);
/*
- * If it matches the gzip magic numbers, return -1
+ * If it matches the gzip magic numbers, return 0
*/
if (buf[0] == 037 && ((buf[1] == 0213) || (buf[1] == 0236))) {
printk(KERN_NOTICE
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists