diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 09:56:46 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-11 08:30:54 +1000 |
commit | f6fb754dc6f1def4bdc28f9391d835860612b9b4 (patch) | |
tree | d60b2f183f89e96d77d3205494281e874f4e47ea /drivers/gpu/drm/drm_gem_cma_helper.c | |
parent | f2a5da4ff2d4085ef5c777cad8a57e083d037809 (diff) | |
download | linux-f6fb754dc6f1def4bdc28f9391d835860612b9b4.tar.bz2 |
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.c | 5 |
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); |