Skip to content

Commit

Permalink
drm: gem_cma: Use ERR_CAST helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Dave Airlie committed Jul 21, 2014
1 parent b197296 commit e7c3634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_gem_cma_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e7c3634

Please sign in to comment.