staging: most: use preferred kzalloc parameters

This patch uses the preferred call to kzalloc. It replaces
kzalloc(sizeof(struct aim_fh)...) by kzalloc(sizeof(*fh)...).

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian Gromm 2015-10-21 17:50:50 +02:00 committed by Greg Kroah-Hartman
parent 2aa9b96ff6
commit 181a2aa185

View file

@ -88,7 +88,7 @@ static int aim_vdev_open(struct file *filp)
return -EINVAL;
}
fh = kzalloc(sizeof(struct aim_fh), GFP_KERNEL);
fh = kzalloc(sizeof(*fh), GFP_KERNEL);
if (!fh)
return -ENOMEM;