Staging: Android: memory allocation style change in ion_page_pool.c
authorBen Marsh <bmarsh94@gmail.com>
Mon, 1 Feb 2016 13:12:32 +0000 (14:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
This is a patch to ion_page_pool.c that changes a memory allocation
style issue as found by checkpatch.pl.

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c

index fd7e23e0c06e9bcc47659e4d692819d6b61fe1a5..1fe80165a46284613457f12af12e80ad97d5e7a6 100644 (file)
@@ -149,8 +149,8 @@ int ion_page_pool_shrink(struct ion_page_pool *pool, gfp_t gfp_mask,
 
 struct ion_page_pool *ion_page_pool_create(gfp_t gfp_mask, unsigned int order)
 {
-       struct ion_page_pool *pool = kmalloc(sizeof(struct ion_page_pool),
-                                            GFP_KERNEL);
+       struct ion_page_pool *pool = kmalloc(sizeof(*pool), GFP_KERNEL);
+
        if (!pool)
                return NULL;
        pool->high_count = 0;