projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36e1ac3
)
ALSA: usb-audio: rmove print for failure of kmalloc
author
Shawn Lin
<shawn.lin@rock-chips.com>
Sun, 21 Aug 2016 02:17:36 +0000
(10:17 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 22 Aug 2016 09:41:02 +0000
(11:41 +0200)
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>
sound/usb/format.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/format.c
b/sound/usb/format.c
index 789d19ec035daf4aab2e2094d1952be71e25f822..2c44386e5569f0099c0a535a9def0bafe54d008b 100644
(file)
--- 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;