Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ad3e92c authored by Wei Yongjun's avatar Wei Yongjun Committed by Philipp Zabel
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 3e3affe5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {