* [PATCH] drm/prime: Cocci spatch "err_cast.spatch"
@ 2013-06-01 10:09 Thomas Meyer
0 siblings, 0 replies; only message in thread
From: Thomas Meyer @ 2013-06-01 10:09 UTC (permalink / raw)
To: airlied, dri-devel, linux-kernel
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
diff -u -p a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
--- a/drivers/gpu/drm/drm_prime.c
+++ b/drivers/gpu/drm/drm_prime.c
@@ -277,7 +277,7 @@ struct drm_gem_object *drm_gem_prime_imp
attach = dma_buf_attach(dma_buf, dev->dev);
if (IS_ERR(attach))
- return ERR_PTR(PTR_ERR(attach));
+ return ERR_CAST(attach);
get_dma_buf(dma_buf);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-01 10:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-01 10:09 [PATCH] drm/prime: Cocci spatch "err_cast.spatch" Thomas Meyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox