Linux-2.5.4-pre6 uhci.c compile fix
PATCH 1/1 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.
drivers/usb/uhci.c Mon Feb 11 03:11:47 2002 renamed from drivers/usb/uhci.c Mon Feb 11 03:04:17 2002 +2 -2
@@ -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),
Quoted 4 lines · Udo A. Steinberg
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