Skip to content

Commit

Permalink
[media] dma-buf: Cocci spatch "ptr_ret.spatch"
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Thomas Meyer authored and Mauro Carvalho Chehab committed Jun 8, 2013
1 parent 4aab039 commit 703e606
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/base/dma-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +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);

if (IS_ERR(d))
return PTR_ERR(d);

return 0;
return PTR_RET(d);
}
#else
static inline int dma_buf_init_debugfs(void)
Expand Down

0 comments on commit 703e606

Please sign in to comment.