Commit 5565c59e authored by L. Alberto Giménez's avatar L. Alberto Giménez Committed by Greg Kroah-Hartman

staging/line6: Fix kzalloc coding style issue

Pass the actual variable to sizeof instead of a type definition.
Signed-off-by: default avatarL. Alberto Giménez <agimenez@sysvalve.es>
Acked-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a6b4699d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment