From patchwork Wed Sep 21 15:12:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9345553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 06077607D0 for ; Thu, 22 Sep 2016 15:29:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED2562ABB4 for ; Thu, 22 Sep 2016 15:29:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E233A2ABB6; Thu, 22 Sep 2016 15:29:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F05982ABB4 for ; Thu, 22 Sep 2016 15:29:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 37F6C6E2FB; Thu, 22 Sep 2016 15:29:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x241.google.com (mail-pa0-x241.google.com [IPv6:2607:f8b0:400e:c03::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 706BE6E86F for ; Wed, 21 Sep 2016 15:12:31 +0000 (UTC) Received: by mail-pa0-x241.google.com with SMTP id s3so1036553pay.1 for ; Wed, 21 Sep 2016 08:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qL1+FDbGs2HEgr2oa7N8iidX50I/TCej3Kmx7SLqvpI=; b=xifcFMqBt0N42gDmgmyrNiirbLJbScVt0bqPMSwigjP/2IclL+T3tS2lCW+7f+IHqw +CA9qe3vpfEt9+FVMFM0boOk23vtmc728Lb2gNq/jZtetzVtcKrNwMQaD9WguagvuUQr RWfbnf6LLftj40bv7IZGZXO2UWckSvOptKujsGF43Nr7ZSIwksNbctlsjy67Hq3h4B8X KVjzc+SJkhulW2ol05kdtxvOwzUhXFusZS7JGsIAMNfSUD20flfw7qSPMUpvxP59pKbY QQUkygl+weXr9LzhtYcSg3K46hFwuI+O+a0pVC1Xx9vtK8M1IyLyaqXet5i0lTVV/HV7 pDHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qL1+FDbGs2HEgr2oa7N8iidX50I/TCej3Kmx7SLqvpI=; b=CTbRR8Rt78rLnJP+1dtrFS73UYBVqTOELCf4uRCrHGpUfrVrami2QZVeFO39YTyB/k SQbFkGdfCCrB9KgZtGOC3n7rLt1T0k/N6nXmQ7pvNTZjn5llD1ge25Bo0FV7x/yrPmyg E4ZptzQrSsGwOVWo1OQvaRrzh9JDeHTmyPVhz5G4q0C1yK/xKQ6trbRLTv3rxTBE9wbH Ds1Yt4M8EZlzeoIX+XtGFXZZT1xNwonZYafoBb4boL19EhwtQqCHv4DMQbbVN1Mibe7M 3bVOrkvhgE4UBXgpMbK2xm5dMY7gQuGLK7lbXaSp0562oThfFev3s4oX6mg0wY2/Gv7P 1mJg== X-Gm-Message-State: AE9vXwN2zWcs9YBf8BAjYlihdg3aS07HEDdx0tucID1HVYoypEUU/gacWd1QZtQuVPIAow== X-Received: by 10.66.156.129 with SMTP id we1mr33011558pab.149.1474470750847; Wed, 21 Sep 2016 08:12:30 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id c28sm20323384pfj.6.2016.09.21.08.12.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Sep 2016 08:12:30 -0700 (PDT) From: Wei Yongjun To: Philipp Zabel Subject: [PATCH -next] gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR()) Date: Wed, 21 Sep 2016 15:12:24 +0000 Message-Id: <1474470744-5985-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 22 Sep 2016 15:29:45 +0000 Cc: Wei Yongjun , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). Generated by: scripts/coccinelle/api/err_cast.cocci Signed-off-by: Wei Yongjun --- drivers/gpu/ipu-v3/ipu-image-convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c b/drivers/gpu/ipu-v3/ipu-image-convert.c index 2ba7d43..805b6fa 100644 --- a/drivers/gpu/ipu-v3/ipu-image-convert.c +++ b/drivers/gpu/ipu-v3/ipu-image-convert.c @@ -1617,7 +1617,7 @@ ipu_image_convert(struct ipu_soc *ipu, enum ipu_ic_task ic_task, ctx = ipu_image_convert_prepare(ipu, ic_task, in, out, rot_mode, complete, complete_context); if (IS_ERR(ctx)) - return ERR_PTR(PTR_ERR(ctx)); + return ERR_CAST(ctx); run = kzalloc(sizeof(*run), GFP_KERNEL); if (!run) {