gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
Subsystems (2)
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
@@ -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) {
Am Mittwoch, den 21.09.2016, 15:12 +0000 schrieb Wei Yongjun:
Quoted 7 lines
From: Wei Yongjun <[email protected]>
Use
ERR_CASTinlined function instead of ERR_PTR(PTR_ERR(...)).Generated by:
scripts/coccinelle/api/err_cast.cocciSigned-off-by Wei Yongjun <[email protected]>
Applied, thank you.
regards
Philipp
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Am Mittwoch, den 21.09.2016, 15:12 +0000 schrieb Wei Yongjun:
Quoted 16 lines
From: Wei Yongjun <[email protected]>
Use
ERR_CASTinlined function instead of ERR_PTR(PTR_ERR(...)).Generated by:
scripts/coccinelle/api/err_cast.cocciSigned-off-by Wei Yongjun <[email protected]>--- 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
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