summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_gem_cma_helper.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 13:56:46 +0400
committerDave Airlie <airlied@redhat.com>2013-06-11 02:30:54 +0400
commitf6fb754dc6f1def4bdc28f9391d835860612b9b4 (patch)
treed60b2f183f89e96d77d3205494281e874f4e47ea /drivers/gpu/drm/drm_gem_cma_helper.c
parentf2a5da4ff2d4085ef5c777cad8a57e083d037809 (diff)
downloadlinux-f6fb754dc6f1def4bdc28f9391d835860612b9b4.tar.xz
drm/cma: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> 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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c
index f94fcd752815..9efabceed42e 100644
--- a/drivers/gpu/drm/drm_gem_cma_helper.c
+++ b/drivers/gpu/drm/drm_gem_cma_helper.c
@@ -215,10 +215,7 @@ int drm_gem_cma_dumb_create(struct drm_file *file_priv,
cma_obj = drm_gem_cma_create_with_handle(file_priv, dev,
args->size, &args->handle);
- if (IS_ERR(cma_obj))
- return PTR_ERR(cma_obj);
-
- return 0;
+ return PTR_RET(cma_obj);
}
EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);