Modify memory allocation style in order to silence a checkpatch.pl
warning.
Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        if (allocated_size > chunk_heap->size - chunk_heap->allocated)
                return -ENOMEM;
 
-       table = kmalloc(sizeof(struct sg_table), GFP_KERNEL);
+       table = kmalloc(sizeof(*table), GFP_KERNEL);
        if (!table)
                return -ENOMEM;
        ret = sg_alloc_table(table, num_chunks, GFP_KERNEL);
        if (ret)
                return ERR_PTR(ret);
 
-       chunk_heap = kzalloc(sizeof(struct ion_chunk_heap), GFP_KERNEL);
+       chunk_heap = kzalloc(sizeof(*chunk_heap), GFP_KERNEL);
        if (!chunk_heap)
                return ERR_PTR(-ENOMEM);