summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_prime.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 14:09:27 +0400
committerDave Airlie <airlied@redhat.com>2013-06-11 02:30:49 +0400
commitf2a5da4ff2d4085ef5c777cad8a57e083d037809 (patch)
tree77b830ec461833355120bfb5915316b3fa741be2 /drivers/gpu/drm/drm_prime.c
parent8d06cd0af6c50a26d87ce78310ad38b9b40fa795 (diff)
downloadlinux-f2a5da4ff2d4085ef5c777cad8a57e083d037809.tar.xz
drm/prime: Cocci spatch "err_cast.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_prime.c')
-rw-r--r--drivers/gpu/drm/drm_prime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
index 58ac6770a8c6..d92853e06dbb 100644
--- a/drivers/gpu/drm/drm_prime.c
+++ b/drivers/gpu/drm/drm_prime.c
@@ -297,7 +297,7 @@ struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev,
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);