Staging: android: fix sizeof style issue
authorMateusz Nowotyński <maxmati4@gmail.com>
Sun, 9 Jul 2017 16:14:39 +0000 (18:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:41:01 +0000 (08:41 +0200)
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>
drivers/staging/android/ion/ion_cma_heap.c

index 368a592..dd5545d 100644 (file)
@@ -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;