staging: android: ion: Remove redundant return of void function
authorPhong Tran <tranmanphong@gmail.com>
Wed, 13 Aug 2014 13:37:06 +0000 (20:37 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:23 +0000 (12:23 -0700)
This patch fix checkpatch.pl warning
Tested by compilation only.

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion_carveout_heap.c
drivers/staging/android/ion/ion_chunk_heap.c
drivers/staging/android/ion/ion_dummy_driver.c
drivers/staging/android/ion/ion_system_heap.c

index cad76ae20d7e458175e86b9f50751517e7bc1ef8..56604f41ec488e49541c91b2b26d295384b20ef0 100644 (file)
@@ -1057,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,
index dcb6f2196c8742ed08a364ac3f438b0a45260b4e..9156d8238c9797cd1d4c3c03365461e176772c2d 100644 (file)
@@ -133,7 +133,6 @@ static struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap,
 static void ion_carveout_heap_unmap_dma(struct ion_heap *heap,
                                        struct ion_buffer *buffer)
 {
-       return;
 }
 
 static struct ion_heap_ops carveout_heap_ops = {
index 9c3e49aa204bb1436297fdd6cc188322b66fce63..3e6ec2ee6802897f081e67b60deaf9a8cf82f6fd 100644 (file)
@@ -126,7 +126,6 @@ static struct sg_table *ion_chunk_heap_map_dma(struct ion_heap *heap,
 static void ion_chunk_heap_unmap_dma(struct ion_heap *heap,
                                     struct ion_buffer *buffer)
 {
-       return;
 }
 
 static struct ion_heap_ops chunk_heap_ops = {
index 6d0a38aabc7ac80728cac72d11c54ae504efb386..f3ea1c31e533920fa244c1ef9b829e73a8eb834a 100644 (file)
@@ -152,7 +152,5 @@ static void __exit ion_dummy_exit(void)
                                dummy_heaps[ION_HEAP_TYPE_CHUNK].size);
                chunk_ptr = NULL;
        }
-
-       return;
 }
 __exitcall(ion_dummy_exit);
index 6b77c5195b4d60267065bb7e1f0f67f5ec5769a1..da2a63c0a9ba5896e96652356c97d718aa761c1f 100644 (file)
@@ -205,7 +205,6 @@ static struct sg_table *ion_system_heap_map_dma(struct ion_heap *heap,
 static void ion_system_heap_unmap_dma(struct ion_heap *heap,
                                      struct ion_buffer *buffer)
 {
-       return;
 }
 
 static int ion_system_heap_shrink(struct ion_heap *heap, gfp_t gfp_mask,