Skip to contentSkip to conversation

gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

PATCH Applied Wei Yongjun 2 participants 3 messages Sep 21, 2016 – Oct 17, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

From: Wei Yongjun <[email protected]>

Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).

Generated by: scripts/coccinelle/api/err_cast.cocci

---
 drivers/gpu/ipu-v3/ipu-image-convert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/ipu-v3/ipu-image-convert.c +1 -1
index 2ba7d43..805b6fa 100644
@@ -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) {
maintainer Applied
#1 lore raw

Am Mittwoch, den 21.09.2016, 15:12 +0000 schrieb Wei Yongjun:

Quoted 7 lines

From: Wei Yongjun <[email protected]>

Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).

Generated by: scripts/coccinelle/api/err_cast.cocci

Applied, thank you.

regards
Philipp

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer Applied
#2 lore raw
In reply to Wei Yongjun

Am Mittwoch, den 21.09.2016, 15:12 +0000 schrieb Wei Yongjun:

Quoted 16 lines

From: Wei Yongjun <[email protected]>

Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).

Generated by: scripts/coccinelle/api/err_cast.cocci

---
 drivers/gpu/ipu-v3/ipu-image-convert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/ipu-v3/ipu-image-convert.c +0 -0
index 2ba7d43..805b6fa 100644

drivers/gpu/ipu-v3/ipu-image-convert.c ipu_image_convert(struct ipu_soc *ipu, enum ipu_ic_task ic_task, · line 1623

Quoted 8 lines
drivers/gpu/ipu-v3/ipu-image-convert.c +1 -1
@@ -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

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel