2002-02-11 02:37:54

by Udo A. Steinberg

[permalink] [raw]
Subject: [PATCH] Linux-2.5.4-pre6 uhci.c compile fix


Hi Linus, Greg,

The attached patch fixes a trivial compiler warning in uhci.c:

uhci.c: In function `uhci_unlink_generic':
uhci.c:1694: warning: suggest parentheses around && within ||

Regards,
Udo.


diff -X dontdiff -Naur linux-2.5.4-pre-vanilla/drivers/usb/uhci.c linux-2.5.4-pre/drivers/usb/uhci.c
--- linux-2.5.4-pre-vanilla/drivers/usb/uhci.c Mon Feb 11 03:04:17 2002
+++ linux-2.5.4-pre/drivers/usb/uhci.c Mon Feb 11 03:11:47 2002
@@ -1689,8 +1689,8 @@

/* Control and Isochronous ignore the toggle, so this */
/* is safe for all types */
- if ((!(td->status & TD_CTRL_ACTIVE) &&
- (uhci_actual_length(td->status) < uhci_expected_length(td->info)) ||
+ if (((!(td->status & TD_CTRL_ACTIVE) &&
+ (uhci_actual_length(td->status) < uhci_expected_length(td->info))) ||
tmp == head)) {
usb_settoggle(urb->dev, uhci_endpoint(td->info),
uhci_packetout(td->info),


2002-02-11 03:15:25

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH] Linux-2.5.4-pre6 uhci.c compile fix

On Mon, Feb 11, 2002 at 03:37:22AM +0100, Udo A. Steinberg wrote:
>
> Hi Linus, Greg,
>
> The attached patch fixes a trivial compiler warning in uhci.c:

I've asked Johannes about this warning, and he said he'd fix it, so I'd
prefer you to send your patch to him first.

thanks,

greg k-h