diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2016-08-20 22:17:36 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-08-22 05:41:02 -0400 |
commit | 1bc00f32b87c24f1a981e6dcf3f2174babee93ad (patch) | |
tree | c4be0dcbc6dd6ba4691c6549df5676ba64f94a84 /sound | |
parent | 36e1ac3cf880fb9dbb528c41ebde567ca17d4a84 (diff) |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/format.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 | |||
176 | int r, idx; | 176 | int r, idx; |
177 | 177 | ||
178 | fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL); | 178 | fp->rate_table = kmalloc(sizeof(int) * nr_rates, GFP_KERNEL); |
179 | if (fp->rate_table == NULL) { | 179 | if (fp->rate_table == NULL) |
180 | usb_audio_err(chip, "cannot malloc\n"); | ||
181 | return -ENOMEM; | 180 | return -ENOMEM; |
182 | } | ||
183 | 181 | ||
184 | fp->nr_rates = 0; | 182 | fp->nr_rates = 0; |
185 | fp->rate_min = fp->rate_max = 0; | 183 | fp->rate_min = fp->rate_max = 0; |