mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
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 <agimenez@sysvalve.es> Acked-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a6b4699dbf
commit
5565c59e9b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user