diff options
author | Ben Marsh <bmarsh94@gmail.com> | 2016-04-24 18:16:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 00:40:50 (GMT) |
commit | 9fea19a9a4bb22a237972d50e41219ddd479ea22 (patch) | |
tree | 946f29aa865f596a16e6e9de715c2d88b498dc46 /drivers/staging/android/ion | |
parent | 0045c8ddd6965e15f638788e7180abe8765f6cbb (diff) | |
download | linux-9fea19a9a4bb22a237972d50e41219ddd479ea22.tar.xz |
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>
Diffstat (limited to 'drivers/staging/android/ion')
-rw-r--r-- | drivers/staging/android/ion/ion_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |