Commit 703e60655ca520c5380d8c83a9db0d5e9b906856
Committed by
Mauro Carvalho Chehab
1 parent
4aab0398e0
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
[media] dma-buf: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff
drivers/base/dma-buf.c
... | ... | @@ -680,10 +680,7 @@ |
680 | 680 | d = debugfs_create_file(name, S_IRUGO, dma_buf_debugfs_dir, |
681 | 681 | write, &dma_buf_debug_fops); |
682 | 682 | |
683 | - if (IS_ERR(d)) | |
684 | - return PTR_ERR(d); | |
685 | - | |
686 | - return 0; | |
683 | + return PTR_RET(d); | |
687 | 684 | } |
688 | 685 | #else |
689 | 686 | static inline int dma_buf_init_debugfs(void) |