Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c328cbd authored by Ben Marsh's avatar Ben Marsh Committed by Greg Kroah-Hartman
Browse files

Staging: Android: change memory allocation style in ion_carveout_heap.c



This is a patch to ion_carveout_heap.c to change the memory allocation
style in order to remove a checkpatch.pl warning.

Signed-off-by: default avatarBen Marsh <bmarsh94@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9590232b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -81,7 +81,7 @@ static int ion_carveout_heap_allocate(struct ion_heap *heap,
	if (align > PAGE_SIZE)
	if (align > PAGE_SIZE)
		return -EINVAL;
		return -EINVAL;


	table = kmalloc(sizeof(struct sg_table), GFP_KERNEL);
	table = kmalloc(sizeof(*table), GFP_KERNEL);
	if (!table)
	if (!table)
		return -ENOMEM;
		return -ENOMEM;
	ret = sg_alloc_table(table, 1, GFP_KERNEL);
	ret = sg_alloc_table(table, 1, GFP_KERNEL);