From: Ben Marsh Date: Sun, 24 Apr 2016 18:16:02 +0000 (+0200) Subject: Staging: android: modify memory allocation style in ion_test.c X-Git-Tag: v4.14-rc1~3181^2~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fea19a9a4bb22a237972d50e41219ddd479ea22;p=platform%2Fkernel%2Flinux-rpi.git Staging: android: modify memory allocation style in ion_test.c Modifies the memory allocation style ion_test.c in order to remove a checkpatch.pl warning Signed-off-by: Ben Marsh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_test.c index 83a3af0..5a396a1 100644 --- a/drivers/staging/android/ion/ion_test.c +++ b/drivers/staging/android/ion/ion_test.c @@ -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;