Skip to content

Commit

Permalink
USB: misc: usb3503: Fix compiler warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dongjin Kim authored and Greg Kroah-Hartman committed Jan 25, 2013
1 parent 4811f53 commit 8ab03dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/misc/usb3503.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8ab03dd

Please sign in to comment.