staging/line6: Fix kzalloc coding style issue
authorL. Alberto Giménez <agimenez@sysvalve.es>
Sun, 6 Apr 2014 22:12:30 +0000 (00:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Apr 2014 03:30:04 +0000 (20:30 -0700)
Pass the actual variable to sizeof instead of a type definition.

Signed-off-by: L. Alberto Giménez <agimenez@sysvalve.es>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/pcm.c

index 661080b3c39df8c2f8e1c43ed9473d4eb603cc25..a3136b189ee5bc7f670f96379e81e0f58c253871 100644 (file)
@@ -475,7 +475,7 @@ int line6_init_pcm(struct usb_line6 *line6,
                MISSING_CASE;
        }
 
-       line6pcm = kzalloc(sizeof(struct snd_line6_pcm), GFP_KERNEL);
+       line6pcm = kzalloc(sizeof(*line6pcm), GFP_KERNEL);
 
        if (line6pcm == NULL)
                return -ENOMEM;