From: Thomas Meyer Date: Sat, 1 Jun 2013 09:56:46 +0000 (+0000) Subject: drm/cma: Cocci spatch "ptr_ret.spatch" X-Git-Tag: accepted/tizen/common/20141203.182822~1901^2~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6fb754dc6f1def4bdc28f9391d835860612b9b4;p=platform%2Fkernel%2Flinux-arm64.git drm/cma: Cocci spatch "ptr_ret.spatch" Signed-off-by: Thomas Meyer Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c index f94fcd7..9efabce 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);