Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fea19a9 authored by Ben Marsh's avatar Ben Marsh Committed by Greg Kroah-Hartman
Browse files

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: default avatarBen Marsh <bmarsh94@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0045c8dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;