Skip to contentSkip to conversation

USB: r8a66597-udc: Initialize uninitialized variable, fix compile warning

PATCH New Javier Martinez Canillas 1 participant 1 message Sep 10, 2010 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: r8a66597-udc: Initialize uninitialized variable, fix compile warning

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

---
 drivers/usb/gadget/r8a66597-udc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/gadget/r8a66597-udc.h +1 -1
index f763b51..5fc22e0 100644
@@ -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) {
Signature · 1 line
1.7.0.4