mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
video: fbdev: omap2: Use PTR_ERR_OR_ZERO()
Fix ptr_ret.cocci warnings: drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c:676:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: Mark Brown <broonie@kernel.org> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
parent
8babdcfb71
commit
1c72004c89
@ -673,10 +673,7 @@ static int hdmi_audio_register(struct device *dev)
|
|||||||
dev, "omap-hdmi-audio", PLATFORM_DEVID_AUTO,
|
dev, "omap-hdmi-audio", PLATFORM_DEVID_AUTO,
|
||||||
&pdata, sizeof(pdata));
|
&pdata, sizeof(pdata));
|
||||||
|
|
||||||
if (IS_ERR(hdmi.audio_pdev))
|
return PTR_ERR_OR_ZERO(hdmi.audio_pdev);
|
||||||
return PTR_ERR(hdmi.audio_pdev);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* HDMI HW IP initialisation */
|
/* HDMI HW IP initialisation */
|
||||||
|
Loading…
Reference in New Issue
Block a user