Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbdev: omapfb: fix some error codes

Return negative -ENXIO instead of positive ENXIO.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Dan Carpenter and committed by
Helge Deller
dc608db7 c1a8d1d0

+2 -2
+2 -2
drivers/video/fbdev/omap/omapfb_main.c
··· 1645 1645 } 1646 1646 fbdev->int_irq = platform_get_irq(pdev, 0); 1647 1647 if (fbdev->int_irq < 0) { 1648 - r = ENXIO; 1648 + r = -ENXIO; 1649 1649 goto cleanup; 1650 1650 } 1651 1651 1652 1652 fbdev->ext_irq = platform_get_irq(pdev, 1); 1653 1653 if (fbdev->ext_irq < 0) { 1654 - r = ENXIO; 1654 + r = -ENXIO; 1655 1655 goto cleanup; 1656 1656 } 1657 1657