drm/prime: Cocci spatch "err_cast.spatch"

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Thomas Meyer 2013-06-01 10:09:27 +00:00 committed by Dave Airlie
parent 8d06cd0af6
commit f2a5da4ff2

View 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);