From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz Date: Thu, 04 Jan 2018 13:58:15 +0000 Subject: Re: [PATCH] video: fbdev: omap2: Use PTR_ERR_OR_ZERO() Message-Id: <9921994.QtZC9fnTIs@amdc3058> List-Id: References: <1511972570-30240-1-git-send-email-gomonovych@gmail.com> In-Reply-To: <1511972570-30240-1-git-send-email-gomonovych@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Vasyl Gomonovych Cc: linux-fbdev@vger.kernel.org, Mark Brown , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Tomi Valkeinen , Laurent Pinchart , linux-omap@vger.kernel.org On Wednesday, November 29, 2017 05:22:48 PM Vasyl Gomonovych wrote: > 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 Patch queued for 4.16, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics