Commit e89a60ba authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Helge Deller

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent be3ca57c
...@@ -1643,17 +1643,16 @@ static int omapfb_do_probe(struct platform_device *pdev, ...@@ -1643,17 +1643,16 @@ static int omapfb_do_probe(struct platform_device *pdev,
r = -ENOMEM; r = -ENOMEM;
goto cleanup; goto cleanup;
} }
fbdev->int_irq = platform_get_irq(pdev, 0);
if (fbdev->int_irq < 0) { r = platform_get_irq(pdev, 0);
r = -ENXIO; if (r < 0)
goto cleanup; goto cleanup;
} fbdev->int_irq = r;
fbdev->ext_irq = platform_get_irq(pdev, 1); r = platform_get_irq(pdev, 1);
if (fbdev->ext_irq < 0) { if (r < 0)
r = -ENXIO;
goto cleanup; goto cleanup;
} fbdev->ext_irq = r;
init_state++; init_state++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment