diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 10:09:27 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-11 08:30:49 +1000 |
commit | f2a5da4ff2d4085ef5c777cad8a57e083d037809 (patch) | |
tree | 77b830ec461833355120bfb5915316b3fa741be2 /drivers | |
parent | 8d06cd0af6c50a26d87ce78310ad38b9b40fa795 (diff) |
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')
-rw-r--r-- | drivers/gpu/drm/drm_prime.c | 2 |
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); |