fbdev: omapfb: Do not shadow error code from platform_get_irq()
There is no point in shadowing the error codes from platform_get_irq(). Refactor omapfb_do_probe() accordingly. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
be3ca57cfb
commit
e89a60ba93
@ -1643,17 +1643,16 @@ static int omapfb_do_probe(struct platform_device *pdev,
|
||||
r = -ENOMEM;
|
||||
goto cleanup;
|
||||
}
|
||||
fbdev->int_irq = platform_get_irq(pdev, 0);
|
||||
if (fbdev->int_irq < 0) {
|
||||
r = -ENXIO;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
fbdev->ext_irq = platform_get_irq(pdev, 1);
|
||||
if (fbdev->ext_irq < 0) {
|
||||
r = -ENXIO;
|
||||
r = platform_get_irq(pdev, 0);
|
||||
if (r < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
fbdev->int_irq = r;
|
||||
|
||||
r = platform_get_irq(pdev, 1);
|
||||
if (r < 0)
|
||||
goto cleanup;
|
||||
fbdev->ext_irq = r;
|
||||
|
||||
init_state++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user