[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101114204237.7cd9e1de@lembas.zaitcev.lan>
Date: Sun, 14 Nov 2010 20:42:37 -0700
From: Pete Zaitcev <zaitcev@...hat.com>
To: Alan Stern <stern@...land.harvard.edu>
Cc: Németh Márton <nm127@...email.hu>,
Greg Kroah-Hartman <gregkh@...e.de>,
<linux-usb@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>,
zaitcev@...hat.com
Subject: Re: [PATCH, RFC] usbmon: correct computing of the ISO packets with
mmap
On Sun, 14 Nov 2010 22:01:58 -0500 (EST)
Alan Stern <stern@...land.harvard.edu> wrote:
> > + * This is the look-ahead pass in case of 'Ci', when actual_length cannot
> > + * be used to determine the length of the whole contiguous buffer.
>
> Shouldn't the comment say "Cz" instead of "Ci"?
Turned out it's actually "C Zi".
> > + while (ndesc-- != 0) {
> > + if (fp->status == 0 && fp->actual_length != 0) {
>
> I'd leave out the fp->status == 0 test. It's not relevant; a buffer
> can contain valid data even if the final status isn't 0.
That's a good point, however is actual_length filled in such case?
I thought it was either one or the other.
-- Pete
--
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