drm/cma: Replace PTR_RET with PTR_ERR_OR_ZERO

PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Sachin Kamat 2013-07-15 16:04:46 +05:30 committed by Rusty Russell
parent 627df4bc95
commit b03cda5145
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +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);
return PTR_RET(cma_obj); return PTR_ERR_OR_ZERO(cma_obj);
} }
EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create); EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);