提交 f6fb754d 编写于 作者: T Thomas Meyer 提交者: Dave Airlie

drm/cma: Cocci spatch "ptr_ret.spatch"

Signed-off-by: NThomas Meyer <thomas@m3y3r.de>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 f2a5da4f
...@@ -215,10 +215,7 @@ int drm_gem_cma_dumb_create(struct drm_file *file_priv, ...@@ -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, cma_obj = drm_gem_cma_create_with_handle(file_priv, dev,
args->size, &args->handle); args->size, &args->handle);
if (IS_ERR(cma_obj)) return PTR_RET(cma_obj);
return PTR_ERR(cma_obj);
return 0;
} }
EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create); EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册