Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753021AbdHXPne (ORCPT ); Thu, 24 Aug 2017 11:43:34 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35917 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752071AbdHXPnc (ORCPT ); Thu, 24 Aug 2017 11:43:32 -0400 From: Abishek V Ashok To: labbott@redhat.com, gregkh@linuxfoundation.org, sumit.semwal@linaro.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Abishek V Ashok Subject: [PATCH] Staging: Android: fix code style in ion_cma_heap.c Date: Thu, 24 Aug 2017 21:10:50 +0530 Message-Id: <20170824154050.11345-1-abishekvashok@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 32 This is a patch to the ion_cma_heap.c file in /drivers/staging/andrioid/ion that fixes a blank line and kmalloc size warning found by the checkpatch.pl tool. Signed-off-by: Abhishek V Ashok --- 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 a0949bc0..1589b9e0 100644 --- a/drivers/staging/android/ion/ion_cma_heap.c +++ b/drivers/staging/android/ion/ion_cma_heap.c @@ -31,7 +31,6 @@ struct ion_cma_heap { #define to_cma_heap(x) container_of(x, struct ion_cma_heap, heap) - /* ION CMA heap operations functions */ static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, unsigned long len, @@ -46,7 +45,7 @@ static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, if (!pages) return -ENOMEM; - table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); + table = kmalloc(sizeof(struct * table), GFP_KERNEL); if (!table) goto err; -- 2.11.0