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 <bmarsh94@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0045c8ddd6
commit
9fea19a9a4
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ static int ion_test_open(struct inode *inode, struct file *file)
|
||||||
struct ion_test_data *data;
|
struct ion_test_data *data;
|
||||||
struct miscdevice *miscdev = file->private_data;
|
struct miscdevice *miscdev = file->private_data;
|
||||||
|
|
||||||
data = kzalloc(sizeof(struct ion_test_data), GFP_KERNEL);
|
data = kzalloc(sizeof(*data), GFP_KERNEL);
|
||||||
if (!data)
|
if (!data)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue