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: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Shawn Lin 2016-08-21 10:17:36 +08:00 committed by Takashi Iwai
parent 36e1ac3cf8
commit 1bc00f32b8

View File

@ -176,10 +176,8 @@ static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audiof
int r, idx; int r, idx;
fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL); fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL);
if (fp->rate_table == NULL) { if (fp->rate_table == NULL)
usb_audio_err(chip, "cannot malloc\n");
return -ENOMEM; return -ENOMEM;
}
fp->nr_rates = 0; fp->nr_rates = 0;
fp->rate_min = fp->rate_max = 0; fp->rate_min = fp->rate_max = 0;