Skip to contentSkip to conversation

usb: Fix compiler warning with gcc4.4

PATCH New Kumar Gala 2 participants 2 messages Jul 7, 2009 – Jul 11, 2009

Subsystems (2)
lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 usb: Fix compiler warning with gcc4.4

ehci-hcd.c: In function 'ehci_submit_root':
ehci-hcd.c:719: warning: value computed is not used ehci-hcd.c:748: warning: value computed is not used

---
 drivers/usb/host/ehci-hcd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/usb/host/ehci-hcd.c +2 -2
index bbd547b..423ea5d 100644
@@ -716,7 +716,7 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
 			goto unknown;
 		}
 		/* unblock posted writes */
-		ehci_readl(&hcor->or_usbcmd);
+		(void) ehci_readl(&hcor->or_usbcmd);
 		break;
 	case USB_REQ_CLEAR_FEATURE | ((USB_DIR_OUT | USB_RT_PORT) << 8):
 		reg = ehci_readl(status_reg);
@@ -745,7 +745,7 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
 		}
 		ehci_writel(status_reg, reg);
 		/* unblock posted write */
-		ehci_readl(&hcor->or_usbcmd);
+		(void) ehci_readl(&hcor->or_usbcmd);
 		break;
 	default:
 		debug("Unknown request\n");
Signature · 1 line
1.6.0.6
#1 lore raw

PATCH 1/1 usb: Fix compiler warning with gcc4.4

Hello,

2009/7/7 Kumar Gala <[email protected]>:

drivers/usb/host/ehci-hcd.c

Quoted 13 lines

ehci-hcd.c: In function 'ehci_submit_root':
ehci-hcd.c:719: warning: value computed is not used ehci-hcd.c:748: warning: value computed is not used

---
?drivers/usb/host/ehci-hcd.c | ? ?4 ++--
?1 files changed, 2 insertions(+), 2 deletions(-)

drivers/usb/host/ehci-hcd.c +0 -0
index bbd547b..423ea5d 100644

Applied to u-boot-usb.
Thanks!

Remy

Quoted 22 lines
drivers/usb/host/ehci-hcd.c +0 -0
@@ -716,7 +716,7 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
 ? ? ? ? ? ? ? ? ? ? ? ?goto unknown;
 ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ?/* unblock posted writes */
- ? ? ? ? ? ? ? ehci_readl(&hcor->or_usbcmd);
+ ? ? ? ? ? ? ? (void) ehci_readl(&hcor->or_usbcmd);
? ? ? ? ? ? ? ?break;
? ? ? ?case USB_REQ_CLEAR_FEATURE | ((USB_DIR_OUT | USB_RT_PORT) << 8):
? ? ? ? ? ? ? ?reg = ehci_readl(status_reg);

drivers/usb/host/ehci-hcd.c +0 -0
@@ -745,7 +745,7 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
 ? ? ? ? ? ? ? ?}
 ? ? ? ? ? ? ? ?ehci_writel(status_reg, reg);

? ? ? ? ? ? ? ?/* unblock posted write */
- ? ? ? ? ? ? ? ehci_readl(&hcor->or_usbcmd);
+ ? ? ? ? ? ? ? (void) ehci_readl(&hcor->or_usbcmd); ? ? ? ? ? ? ? ?break;
? ? ? ?default:
? ? ? ? ? ? ? ?debug("Unknown request\n"); --
1.6.0.6