From: Shawn Lin Date: Sun, 21 Aug 2016 02:17:36 +0000 (+0800) Subject: ALSA: usb-audio: rmove print for failure of kmalloc X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bc00f32b87c24f1a981e6dcf3f2174babee93ad;p=linux-beck.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/format.c b/sound/usb/format.c index 789d19ec035d..2c44386e5569 100644 --- a/sound/usb/format.c +++ b/sound/usb/format.c @@ -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;