lkml.org 
[lkml]   [1996]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bad comment in drivers/block/rd.c?

Date: Tue, 19 Nov 1996 17:29:34 +0100 (MET)
From: Christian Hardmeier <chrigi@infinite.loop.org>

drivers/block/rd.c (from the 2.0.25 source tree) says:

> /*
> * This routine tries to a ramdisk image to load, and returns the
> * number of blocks to read for a non-compressed image, 0 if the image
^^^^^^^^^^^^^^
> * is a compressed image, and -1 if an image with the right magic
^^^^^^^^^^^^^^^^^^^^^
> * numbers could not be found.
> *

Shouldn't the comment say "if it matches the gzip magic numbers, return 0"
rather than "return -1"?

I'm not sure what you're complaining about. The comment says: "return 0
if the image is a compressed image". That is, if the image has the
magic numbers of gzip. It returns -1 if the right magic numbers aren't
there.

- Ted

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.035 / U:1.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site