projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9590232
)
Staging: Android: change memory allocation style in ion_carveout_heap.c
author
Ben Marsh
<
[email protected]
>
Wed, 24 Feb 2016 12:26:16 +0000
(13:26 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 12 Mar 2016 06:09:09 +0000
(22:09 -0800)
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: Ben Marsh <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/android/ion/ion_carveout_heap.c
patch
|
blob
|
history
diff --git
a/drivers/staging/android/ion/ion_carveout_heap.c
b/drivers/staging/android/ion/ion_carveout_heap.c
index e702ce6461fc9b4a47f8c513c68e25fe80bdacc4..173ba2d346e63d3579ec7835fb06a30dd362a236 100644
(file)
--- a/
drivers/staging/android/ion/ion_carveout_heap.c
+++ b/
drivers/staging/android/ion/ion_carveout_heap.c
@@
-81,7
+81,7
@@
static int ion_carveout_heap_allocate(struct ion_heap *heap,
if (align > PAGE_SIZE)
return -EINVAL;
- table = kmalloc(sizeof(
struct sg_
table), GFP_KERNEL);
+ table = kmalloc(sizeof(
*
table), GFP_KERNEL);
if (!table)
return -ENOMEM;
ret = sg_alloc_table(table, 1, GFP_KERNEL);