summaryrefslogtreecommitdiffstats
path: root/sound/usb/line6/midi.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 15:05:10 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-20 08:16:01 +0100
commita019f5e8c522f5b5f8b3419a1e56d142ea4c7621 (patch)
treedf38d756f18400c0af6518d8e40449ff93774b93 /sound/usb/line6/midi.c
parent45a82f18913fd9b959f0703ed47750733840e92a (diff)
downloadlinux-a019f5e8c522f5b5f8b3419a1e56d142ea4c7621.tar.gz
linux-a019f5e8c522f5b5f8b3419a1e56d142ea4c7621.tar.bz2
linux-a019f5e8c522f5b5f8b3419a1e56d142ea4c7621.zip
ALSA: line6: Remove superfluous out-of-memory error messages
Kernel already shows the error in the common path. Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/midi.c')
-rw-r--r--sound/usb/line6/midi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/usb/line6/midi.c b/sound/usb/line6/midi.c
index ebca5ebcfecc..f333cef5d2d7 100644
--- a/sound/usb/line6/midi.c
+++ b/sound/usb/line6/midi.c
@@ -121,16 +121,13 @@ static int send_midi_async(struct usb_line6 *line6, unsigned char *data,
urb = usb_alloc_urb(0, GFP_ATOMIC);
- if (urb == NULL) {
- dev_err(line6->ifcdev, "Out of memory\n");
+ if (urb == NULL)
return -ENOMEM;
- }
transfer_buffer = kmemdup(data, length, GFP_ATOMIC);
if (transfer_buffer == NULL) {
usb_free_urb(urb);
- dev_err(line6->ifcdev, "Out of memory\n");
return -ENOMEM;
}