Skip to contentSkip to conversation

Correct comment in identify_ramdisk_image() routine.

PATCH New Robert P. J. Day 1 participant 1 message Aug 5, 2008 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Correct comment in identify_ramdisk_image() routine.

Correct the comment to reflect that a gzipped image will return zero, not -1.

---

the code is correct, it's only the comment that's wrong.

init/do_mounts_rd.c +1 -1
index fedef93..a7c748f 100644
@@ -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
========================================================================