Re: [Bugme-new] [Bug 8297] New: ldusb returns bad data on subsequent reads if no data is available.

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Am Freitag, 20. April 2007 07:01 schrieb Andrew Morton:
> On Tue, 17 Apr 2007 23:35:03 +0200 Oliver Neukum <[email protected]> wrote:
> 
> > Am Dienstag, 17. April 2007 18:15 schrieb Alan Stern:

> > > You see the problem?
> > 
> > OK, I see. And I do blame the coding style rules.
> > 
> 
> Which rules?  afacit usb is a rule-free zone, but most of the rest of the
> kernel will put braces around both legs of an if-else if either leg
> requires braces.  However lots of developers seem to delight in avoiding
> learning that.

I concur. I blame slavishly following the "if with one statement no braces"
rule.

if (cond)
	is_okay;

if (cond)
	one
	awfully
	long
	statement
	is
	a
	bad
	idea;	

"If in any doubt: braces" would be my coding style rule.

> Anyway.  I don't think we've heard back from Shawn yet?

No, we haven't.

	Regards
		Oliver


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.