From: Philipp Zabel <p.zabel@pengutronix.de>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: Wei Yongjun <weiyongjun1@huawei.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
Date: Mon, 17 Oct 2016 18:10:39 +0200 [thread overview]
Message-ID: <1476720639.2488.47.camel@pengutronix.de> (raw)
In-Reply-To: <1474470744-5985-1-git-send-email-weiyj.lk@gmail.com>
Am Mittwoch, den 21.09.2016, 15:12 +0000 schrieb Wei Yongjun:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).
>
> Generated by: scripts/coccinelle/api/err_cast.cocci
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
> 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) {
Applied, thanks.
regards
Philipp
prev parent reply other threads:[~2016-10-17 16:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 15:12 [PATCH -next] gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR()) Wei Yongjun
2016-09-27 10:09 ` Philipp Zabel
2016-10-17 16:10 ` Philipp Zabel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476720639.2488.47.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=weiyj.lk@gmail.com \
--cc=weiyongjun1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).