Skip to content

Commit

Permalink
leds: mc13783: Fix "uninitialized variable" warning
Browse files Browse the repository at this point in the history
drivers/leds/leds-mc13783.c: In function 'mc13xxx_led_probe':
drivers/leds/leds-mc13783.c:195:2: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
  • Loading branch information
Alexander Shiyan authored and Bryan Wu committed Jul 2, 2013
1 parent 73e1ab4 commit cf3b1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-mc13783.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static int __init mc13xxx_led_probe(struct platform_device *pdev)
struct mc13xxx_led_devtype *devtype =
(struct mc13xxx_led_devtype *)pdev->id_entry->driver_data;
struct mc13xxx_leds *leds;
int i, id, num_leds, ret;
int i, id, num_leds, ret = -ENODATA;
u32 reg, init_led = 0;

if (!pdata) {
Expand Down

0 comments on commit cf3b1c2

Please sign in to comment.