[PATCH] staging: android: ion: ion_cma_heap.c fix checkpatch errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Including
*Excess newlines
*Unnecessary braces

Signed-off-by: Chinmay Nivsarkar <mit.chinmayn@xxxxxxxxx>
---
 drivers/staging/android/ion/ion_cma_heap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/android/ion/ion_cma_heap.c
b/drivers/staging/android/ion/ion_cma_heap.c
index 6c7de74..a400255 100644
--- a/drivers/staging/android/ion/ion_cma_heap.c
+++ b/drivers/staging/android/ion/ion_cma_heap.c
@@ -39,7 +39,6 @@ struct ion_cma_buffer_info {
     struct sg_table *table;
 };

-
 /* ION CMA heap operations functions */
 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer,
                 unsigned long len, unsigned long align,
@@ -61,7 +60,7 @@ static int ion_cma_allocate(struct ion_heap *heap,
struct ion_buffer *buffer,
     if (!info)
         return ION_CMA_ALLOCATE_FAILED;

-    info->cpu_addr = dma_alloc_coherent(dev, len, &(info->handle),
+    info->cpu_addr = dma_alloc_coherent(dev, len, &info->handle,
                         GFP_HIGHUSER | __GFP_ZERO);

     if (!info->cpu_addr) {
-- 
2.9.3
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux