Skip to content

Commit

Permalink
i2c: sun6i-p2wi: use proper return value in probe
Browse files Browse the repository at this point in the history
Fixes:
>> drivers/i2c/busses/i2c-sun6i-p2wi.c:243:10: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Wolfram Sang committed Jun 12, 2014
1 parent 3e83349 commit c155ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sun6i-p2wi.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static int p2wi_probe(struct platform_device *pdev)
snprintf(p2wi->adapter.name, sizeof(p2wi->adapter.name), pdev->name);
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(dev, "failed to retrieve irq: %d\n", ret);
dev_err(dev, "failed to retrieve irq: %d\n", irq);
return irq;
}

Expand Down

0 comments on commit c155ba8

Please sign in to comment.