]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: most: use preferred kzalloc parameters
authorChristian Gromm <christian.gromm@microchip.com>
Wed, 21 Oct 2015 15:50:50 +0000 (17:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:08:20 +0000 (19:08 -0700)
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>
drivers/staging/most/aim-v4l2/video.c

index 228971abf310d8050ac0b7bb21548d21743b392e..13abf7c275a4e9809c5e2eb02faf1a135493a5af 100644 (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;