drm/cma: Replace PTR_RET with PTR_ERR_OR_ZERO
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 15 Jul 2013 10:34:46 +0000 (16:04 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 16 Jul 2013 06:36:01 +0000 (16:06 +0930)
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>
drivers/gpu/drm/drm_gem_cma_helper.c

index ece72a8ac245ed6f3bc8587813f0e51cb1653821..61c1d17f870cccb4756cff905139aee3721d31b8 100644 (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,
                        args->size, &args->handle);
-       return PTR_RET(cma_obj);
+       return PTR_ERR_OR_ZERO(cma_obj);
 }
 EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);