[PATCH] USB: r8a66597-udc: Initialize uninitialized variable, fixcompile warning

From: Javier Martinez Canillas
Date: Fri Sep 10 2010 - 08:42:41 EST


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@xxxxxxxxx>
---
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



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/