mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
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>
This commit is contained in:
parent
3e3affe549
commit
4ad3e92c28
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue