From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935132AbcIETcT (ORCPT ); Mon, 5 Sep 2016 15:32:19 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:51387 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932200AbcIETcR (ORCPT ); Mon, 5 Sep 2016 15:32:17 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Mon, 05 Sep 2016 12:26:59 -0700 From: Stefan Agner To: Wei Yongjun Cc: Alison Wang , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] drm/fsl-dcu: use PTR_ERR_OR_ZERO() to simplify the code In-Reply-To: <1469430487-8897-1-git-send-email-weiyj.lk@gmail.com> References: <1469430487-8897-1-git-send-email-weiyj.lk@gmail.com> Message-ID: User-Agent: Roundcube Webmail/1.1.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-07-25 00:08, Wei Yongjun wrote: > 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 Applied! -- Stefan