mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
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:
parent
2aa9b96ff6
commit
181a2aa185
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue