Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;