Skip to content

Commit

Permalink
gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  • Loading branch information
Wei Yongjun authored and Philipp Zabel committed Oct 17, 2016
1 parent 3e3affe commit 4ad3e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/ipu-v3/ipu-image-convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4ad3e92

Please sign in to comment.