video: fbdev: omap2: Use PTR_ERR_OR_ZERO()
authorVasyl Gomonovych <gomonovych@gmail.com>
Thu, 4 Jan 2018 15:53:49 +0000 (16:53 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 4 Jan 2018 15:53:49 +0000 (16:53 +0100)
commit1c72004c890be1af257f705a9eb7976f167f8c81
tree6c40cfd61a19cd4034765134f7a504a22838a4d2
parent8babdcfb71e98ca086b5abf804ec2195f434ed2b
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>
drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c