mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] USB: r8a66597-udc: Initialize uninitialized variable, fix compile warning
@ 2010-09-10 12:42 Javier Martinez Canillas
  0 siblings, 0 replies; only message in thread
From: Javier Martinez Canillas @ 2010-09-10 12:42 UTC (permalink / raw)
  To: David Brownell, Greg Kroah-Hartman, Paul Mundt, Magnus Damm,
	Yoshihiro Shimoda, linux-usb, linux-kernel

In today linux-next I got a compile warning due a possible uninitialized variable

This patch solves the issue initializing the variable

Thanks a lot

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
 drivers/usb/gadget/r8a66597-udc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/r8a66597-udc.h b/drivers/usb/gadget/r8a66597-udc.h
index f763b51..5fc22e0 100644
--- a/drivers/usb/gadget/r8a66597-udc.h
+++ b/drivers/usb/gadget/r8a66597-udc.h
@@ -136,7 +136,7 @@ static inline void r8a66597_read_fifo(struct r8a66597 *r8a66597,
 				      int len)
 {
 	void __iomem *fifoaddr = r8a66597->reg + offset;
-	unsigned int data;
+	unsigned int data = 0;
 	int i;
 
 	if (r8a66597->pdata->on_chip) {
-- 
1.7.0.4




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-10 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10 12:42 [PATCH] USB: r8a66597-udc: Initialize uninitialized variable, fix compile warning Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome