Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b03cda51 authored by Sachin Kamat's avatar Sachin Kamat Committed by Rusty Russell
Browse files

drm/cma: Replace PTR_RET with PTR_ERR_OR_ZERO



PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 627df4bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
			args->size, &args->handle);
	return PTR_RET(cma_obj);
	return PTR_ERR_OR_ZERO(cma_obj);
}
EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);