Переглянути джерело

Staging: android: fix sizeof style issue

Converts sizeof(type) to sizeof(variable) in android/ion/ion_cma_heap.c

Signed-off-by: Mateusz Nowotyński <maxmati4@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Mateusz Nowotyński 8 роки тому
батько
коміт
c1116da9a2
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      drivers/staging/android/ion/ion_cma_heap.c

+ 1 - 1
drivers/staging/android/ion/ion_cma_heap.c

@@ -45,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(*table), GFP_KERNEL);
 	if (!table)
 		goto err;