drm/fsl-dcu: use PTR_ERR_OR_ZERO() to simplify the code
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 25 Jul 2016 07:08:07 +0000 (07:08 +0000)
committerStefan Agner <stefan@agner.ch>
Mon, 5 Sep 2016 19:15:41 +0000 (12:15 -0700)
commitacd4d615bc5b4035a542ea3458fdee3b5d6f0f78
treee39a99914615f9a949bc7a764e114a8e4581bc5c
parent6cc4758ae91c0582f07e3c94c7de1ad0975feff5
drm/fsl-dcu: use PTR_ERR_OR_ZERO() to simplify the code

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_tcon.c