projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e3affe
)
gpu: ipu-v3: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 21 Sep 2016 15:12:24 +0000
(15:12 +0000)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Mon, 17 Oct 2016 06:21:53 +0000
(08:21 +0200)
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>
drivers/gpu/ipu-v3/ipu-image-convert.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ipu-v3/ipu-image-convert.c
b/drivers/gpu/ipu-v3/ipu-image-convert.c
index 2ba7d437a2afc7a0758402690526de5366abb718..805b6fa7b5f4c2f7ca98582ff028e1268bc66540 100644
(file)
--- a/
drivers/gpu/ipu-v3/ipu-image-convert.c
+++ b/
drivers/gpu/ipu-v3/ipu-image-convert.c
@@
-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) {