summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_gem_cma_helper.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-07-03 17:33:33 +0530
committerDave Airlie <airlied@redhat.com>2014-07-21 14:36:45 +1000
commite7c36347130fc3b9eec3572d00c53533f07a7347 (patch)
tree482dfb8b6017f36537733245c9666f353d2e476c /drivers/gpu/drm/drm_gem_cma_helper.c
parentb19729617929fff8217708f6e960cd85e6f53da2 (diff)
downloadlinux-e7c36347130fc3b9eec3572d00c53533f07a7347.tar.gz
linux-e7c36347130fc3b9eec3572d00c53533f07a7347.tar.bz2
linux-e7c36347130fc3b9eec3572d00c53533f07a7347.zip
drm: gem_cma: Use ERR_CAST helper
Makes the code a bit more readable. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_gem_cma_helper.c')
-rw-r--r--drivers/gpu/drm/drm_gem_cma_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c
index 05c97c5350a1..e467e67af6e7 100644
--- a/drivers/gpu/drm/drm_gem_cma_helper.c
+++ b/drivers/gpu/drm/drm_gem_cma_helper.c
@@ -327,7 +327,7 @@ drm_gem_cma_prime_import_sg_table(struct drm_device *dev, size_t size,
/* Create a CMA GEM buffer. */
cma_obj = __drm_gem_cma_create(dev, size);
if (IS_ERR(cma_obj))
- return ERR_PTR(PTR_ERR(cma_obj));
+ return ERR_CAST(cma_obj);
cma_obj->paddr = sg_dma_address(sgt->sgl);
cma_obj->sgt = sgt;