]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/prime: Cocci spatch "err_cast.spatch"
authorThomas Meyer <thomas@m3y3r.de>
Sat, 1 Jun 2013 10:09:27 +0000 (10:09 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Jun 2013 22:30:49 +0000 (08:30 +1000)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c

index 58ac6770a8c6441652b5756683585833809a991c..d92853e06dbb9aee6c120d983fb23eeb00b72584 100644 (file)
@@ -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);