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

Commit 1bc00f32 authored by Shawn Lin's avatar Shawn Lin Committed by Takashi Iwai
Browse files

ALSA: usb-audio: rmove print for failure of kmalloc



kmalloc already print similar error once failing to alloc
enough memory, so let's remove this dump here.

Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 36e1ac3c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -176,10 +176,8 @@ static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audiof
		int r, idx;

		fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL);
		if (fp->rate_table == NULL) {
			usb_audio_err(chip, "cannot malloc\n");
		if (fp->rate_table == NULL)
			return -ENOMEM;
		}

		fp->nr_rates = 0;
		fp->rate_min = fp->rate_max = 0;