diff options
author | Dongjin Kim <tobetter@gmail.com> | 2013-01-25 17:53:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-25 18:56:54 +0100 |
commit | 8ab03dd48a549f140597a55a1564083b171d1349 (patch) | |
tree | 7563aaf23a307a67a874b9bcbd91197595cd2ea4 /drivers/usb | |
parent | Merge tag 'xceiv-for-v3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/b... (diff) | |
download | linux-8ab03dd48a549f140597a55a1564083b171d1349.tar.xz linux-8ab03dd48a549f140597a55a1564083b171d1349.zip |
USB: misc: usb3503: Fix compiler warning
This patch fixes the compiler warning of uninitialized variable.
drivers/usb/misc/usb3503.c: In function ‘usb3503_probe’:
drivers/usb/misc/usb3503.c:215:13: warning: ‘mode’ may be used uninitialized
in this function [-Wuninitialized]
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/misc/usb3503.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index 471218aea7b3..f713f6aeb6e5 100644 --- a/drivers/usb/misc/usb3503.c +++ b/drivers/usb/misc/usb3503.c @@ -185,7 +185,7 @@ static int usb3503_probe(struct i2c_client *i2c, const struct i2c_device_id *id) struct device_node *np = i2c->dev.of_node; struct usb3503 *hub; int err = -ENOMEM; - u32 mode; + u32 mode = USB3503_MODE_UNKNOWN; hub = kzalloc(sizeof(struct usb3503), GFP_KERNEL); if (!hub) { |