dma-buf: Replace PTR_RET with PTR_ERR_OR_ZERO
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 15 Jul 2013 10:21:22 +0000 (15:51 +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/base/dma-buf.c

index 6687ba7418796429c95077de55c0664035b4d7ea..1219ab7c310757cdd493baf9101000b0c5d286b0 100644 (file)
@@ -680,7 +680,7 @@ int dma_buf_debugfs_create_file(const char *name,
        d = debugfs_create_file(name, S_IRUGO, dma_buf_debugfs_dir,
                        write, &dma_buf_debug_fops);
 
-       return PTR_RET(d);
+       return PTR_ERR_OR_ZERO(d);
 }
 #else
 static inline int dma_buf_init_debugfs(void)