Messages in this thread Patch in this message | | | From | Phong Tran <> | Subject | [PATCH 1/5] staging: android: ion: ion.c Fix checkpatch warning | Date | Tue, 12 Aug 2014 23:17:26 +0700 |
| |
This patch fix the coding style
- Add a new line after variable declaration - Remove return of void fuction
Tested by compilation
Signed-off-by: Phong Tran <tranmanphong@gmail.com> --- drivers/staging/android/ion/ion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 2703609..56604f4 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -805,6 +805,7 @@ struct ion_client *ion_client_create(struct ion_device *dev, client, &debug_client_fops); if (!client->debug_root) { char buf[256], *path; + path = dentry_path(dev->clients_debug_root, buf, 256); pr_err("Failed to create client debugfs at %s/%s\n", path, client->display_name); @@ -1056,7 +1057,6 @@ static void *ion_dma_buf_kmap(struct dma_buf *dmabuf, unsigned long offset) static void ion_dma_buf_kunmap(struct dma_buf *dmabuf, unsigned long offset, void *ptr) { - return; } static int ion_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, size_t start, -- 1.9.3
| |