Skip to contentSkip to conversation

drivers/usb/host/ehci-mxc.c: Fix GCC 4.6 warning

PATCH New Anatolij Gustschin 3 participants 3 messages Nov 19, 2011 – Dec 9, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/usb/host/ehci-mxc.c: Fix GCC 4.6 warning

Fix:
ehci-mxc.c: In function 'ehci_hcd_init':
ehci-mxc.c:113:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]

---
 drivers/usb/host/ehci-mxc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/usb/host/ehci-mxc.c +1 -2
index f403d49..61dbccd 100644
@@ -110,11 +110,10 @@ int ehci_hcd_init(void)
 {
 	struct usb_ehci *ehci;
 #ifdef CONFIG_MX31
-	u32 tmp;
 	struct clock_control_regs *sc_regs =
 		(struct clock_control_regs *)CCM_BASE;
 
-	tmp = __raw_readl(&sc_regs->ccmr);
+	__raw_readl(&sc_regs->ccmr);
 	__raw_writel(__raw_readl(&sc_regs->ccmr) | (1 << 9), &sc_regs->ccmr) ;
 #endif
 
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 drivers/usb/host/ehci-mxc.c: Fix GCC 4.6 warning

Hi,

2011/11/19 Anatolij Gustschin <[email protected]>:

Quoted 9 lines

Fix:
ehci-mxc.c: In function 'ehci_hcd_init':
ehci-mxc.c:113:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]

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

Applied to u-boot-usb. Thanks.

Remy

#2 lore raw

PATCH 1/1 drivers/usb/host/ehci-mxc.c: Fix GCC 4.6 warning

In reply to Anatolij Gustschin

Dear Anatolij Gustschin,

Quoted 9 lines · In message <[email protected]> you wrote:

Fix:
ehci-mxc.c: In function 'ehci_hcd_init':
ehci-mxc.c:113:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]

---
 drivers/usb/host/ehci-mxc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Remy, you wrote you had applied this to u-boot-usb, so this is probably OK with you. Sorry that I did not want to wait any longer for your pull request, at least not for these simple fixes.

Best regards,

Wolfgang Denk

Signature · 10 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
                        ACHTUNG!!!

Das machine is nicht fur gefingerpoken und  mittengrabben.  Ist  easy
schnappen der springenwerk, blowenfusen und corkenpoppen mit spitzen-
sparken.  Ist  nicht fur gewerken by das dummkopfen. Das rubbernecken
sightseeren keepen hands  in  das  pockets.  Relaxen  und  vatch  das
blinkenlights!!!