Re: [PATCH] drm/sun4i: use PTR_ERR_OR_ZERO macro.

From: Wambui Karuga
Date: Tue Jan 07 2020 - 07:46:07 EST




On Tue, 7 Jan 2020, Maxime Ripard wrote:

Hi,

On Mon, Jan 06, 2020 at 05:00:52PM +0300, Wambui Karuga wrote:
Replace the use of IS_ERR and PTR_ZERO macros by returning the
PTR_ERR_OR_ZERO macro.
Changes suggested by coccinelle.

Signed-off-by: Wambui Karuga <wambui.karugax@xxxxxxxxx>

Unfortunately, that patch came up a number of time and shouldn't have
been a coccinelle script in the first place.

I've sent a patch to remove that script:
https://lore.kernel.org/lkml/20200107073629.325249-1-maxime@xxxxxxxxxx/

Okay, thanks for the review.
Maxime