From: L. Alberto Giménez Date: Sun, 6 Apr 2014 22:12:30 +0000 (+0200) Subject: staging/line6: Fix kzalloc coding style issue X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~1421 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5565c59e9b1b329f58e7b4a3e307a2bc7c12605c;p=firefly-linux-kernel-4.4.55.git staging/line6: Fix kzalloc coding style issue Pass the actual variable to sizeof instead of a type definition. Signed-off-by: L. Alberto Giménez Acked-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/line6/pcm.c b/drivers/staging/line6/pcm.c index 661080b3c39d..a3136b189ee5 100644 --- a/drivers/staging/line6/pcm.c +++ b/drivers/staging/line6/pcm.c @@ -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;