Staging: android: modify memory allocation style in ion_test.c
authorBen Marsh <bmarsh94@gmail.com>
Sun, 24 Apr 2016 18:16:02 +0000 (20:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:40:50 +0000 (17:40 -0700)
Modifies the memory allocation style ion_test.c in order to remove a
checkpatch.pl warning

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

index 83a3af0..5a396a1 100644 (file)
@@ -208,7 +208,7 @@ static int ion_test_open(struct inode *inode, struct file *file)
        struct ion_test_data *data;
        struct miscdevice *miscdev = file->private_data;
 
-       data = kzalloc(sizeof(struct ion_test_data), GFP_KERNEL);
+       data = kzalloc(sizeof(*data), GFP_KERNEL);
        if (!data)
                return -ENOMEM;