diff options
author | Mateusz Nowotyński <maxmati4@gmail.com> | 2017-07-09 18:14:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-16 08:41:01 +0200 |
commit | c1116da9a2b12d1fb8b93ef2874acb3835f1d918 (patch) | |
tree | 78a4f7b344caac24c31d4a2d170995b32589f9cc /drivers | |
parent | da1fe271c665a1f598432f688119bff7c2b5e7dd (diff) | |
download | op-kernel-dev-c1116da9a2b12d1fb8b93ef2874acb3835f1d918.zip op-kernel-dev-c1116da9a2b12d1fb8b93ef2874acb3835f1d918.tar.gz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/android/ion/ion_cma_heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_heap.c index 368a592..dd5545d 100644 --- a/drivers/staging/android/ion/ion_cma_heap.c +++ b/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; |