aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 09:05:10 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-20 02:16:01 -0500
commita019f5e8c522f5b5f8b3419a1e56d142ea4c7621 (patch)
treedf38d756f18400c0af6518d8e40449ff93774b93 /sound/usb
parent45a82f18913fd9b959f0703ed47750733840e92a (diff)
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')
-rw-r--r--sound/usb/line6/capture.c4
-rw-r--r--sound/usb/line6/driver.c6
-rw-r--r--sound/usb/line6/midi.c5
-rw-r--r--sound/usb/line6/playback.c4
-rw-r--r--sound/usb/line6/variax.c4
5 files changed, 5 insertions, 18 deletions
diff --git a/sound/usb/line6/capture.c b/sound/usb/line6/capture.c
index 1970ab57cb6f..727b31876d48 100644
--- a/sound/usb/line6/capture.c
+++ b/sound/usb/line6/capture.c
@@ -402,10 +402,8 @@ int line6_create_audio_in_urbs(struct snd_line6_pcm *line6pcm)
402 urb = line6pcm->urb_audio_in[i] = 402 urb = line6pcm->urb_audio_in[i] =
403 usb_alloc_urb(LINE6_ISO_PACKETS, GFP_KERNEL); 403 usb_alloc_urb(LINE6_ISO_PACKETS, GFP_KERNEL);
404 404
405 if (urb == NULL) { 405 if (urb == NULL)
406 dev_err(line6->ifcdev, "Out of memory\n");
407 return -ENOMEM; 406 return -ENOMEM;
408 }
409 407
410 urb->dev = line6->usbdev; 408 urb->dev = line6->usbdev;
411 urb->pipe = 409 urb->pipe =
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index 23d504f4b6bc..b8f5134dcec2 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -190,7 +190,6 @@ int line6_send_raw_message_async(struct usb_line6 *line6, const char *buffer,
190 190
191 if (urb == NULL) { 191 if (urb == NULL) {
192 kfree(msg); 192 kfree(msg);
193 dev_err(line6->ifcdev, "Out of memory\n");
194 return -ENOMEM; 193 return -ENOMEM;
195 } 194 }
196 195
@@ -215,10 +214,8 @@ int line6_version_request_async(struct usb_line6 *line6)
215 214
216 buffer = kmemdup(line6_request_version, 215 buffer = kmemdup(line6_request_version,
217 sizeof(line6_request_version), GFP_ATOMIC); 216 sizeof(line6_request_version), GFP_ATOMIC);
218 if (buffer == NULL) { 217 if (buffer == NULL)
219 dev_err(line6->ifcdev, "Out of memory");
220 return -ENOMEM; 218 return -ENOMEM;
221 }
222 219
223 retval = line6_send_raw_message_async(line6, buffer, 220 retval = line6_send_raw_message_async(line6, buffer,
224 sizeof(line6_request_version)); 221 sizeof(line6_request_version));
@@ -593,7 +590,6 @@ int line6_probe(struct usb_interface *interface,
593 line6->urb_listen = usb_alloc_urb(0, GFP_KERNEL); 590 line6->urb_listen = usb_alloc_urb(0, GFP_KERNEL);
594 591
595 if (line6->urb_listen == NULL) { 592 if (line6->urb_listen == NULL) {
596 dev_err(&interface->dev, "Out of memory\n");
597 ret = -ENOMEM; 593 ret = -ENOMEM;
598 goto err_destruct; 594 goto err_destruct;
599 } 595 }
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,
121 121
122 urb = usb_alloc_urb(0, GFP_ATOMIC); 122 urb = usb_alloc_urb(0, GFP_ATOMIC);
123 123
124 if (urb == NULL) { 124 if (urb == NULL)
125 dev_err(line6->ifcdev, "Out of memory\n");
126 return -ENOMEM; 125 return -ENOMEM;
127 }
128 126
129 transfer_buffer = kmemdup(data, length, GFP_ATOMIC); 127 transfer_buffer = kmemdup(data, length, GFP_ATOMIC);
130 128
131 if (transfer_buffer == NULL) { 129 if (transfer_buffer == NULL) {
132 usb_free_urb(urb); 130 usb_free_urb(urb);
133 dev_err(line6->ifcdev, "Out of memory\n");
134 return -ENOMEM; 131 return -ENOMEM;
135 } 132 }
136 133
diff --git a/sound/usb/line6/playback.c b/sound/usb/line6/playback.c
index 8fc2dedbeb52..5a7fe409a3b9 100644
--- a/sound/usb/line6/playback.c
+++ b/sound/usb/line6/playback.c
@@ -558,10 +558,8 @@ int line6_create_audio_out_urbs(struct snd_line6_pcm *line6pcm)
558 urb = line6pcm->urb_audio_out[i] = 558 urb = line6pcm->urb_audio_out[i] =
559 usb_alloc_urb(LINE6_ISO_PACKETS, GFP_KERNEL); 559 usb_alloc_urb(LINE6_ISO_PACKETS, GFP_KERNEL);
560 560
561 if (urb == NULL) { 561 if (urb == NULL)
562 dev_err(line6->ifcdev, "Out of memory\n");
563 return -ENOMEM; 562 return -ENOMEM;
564 }
565 563
566 urb->dev = line6->usbdev; 564 urb->dev = line6->usbdev;
567 urb->pipe = 565 urb->pipe =
diff --git a/sound/usb/line6/variax.c b/sound/usb/line6/variax.c
index 0c852bb1e76c..9a9c7e48e24f 100644
--- a/sound/usb/line6/variax.c
+++ b/sound/usb/line6/variax.c
@@ -260,10 +260,8 @@ static int variax_try_init(struct usb_interface *interface,
260 variax->buffer_activate = kmemdup(variax_activate, 260 variax->buffer_activate = kmemdup(variax_activate,
261 sizeof(variax_activate), GFP_KERNEL); 261 sizeof(variax_activate), GFP_KERNEL);
262 262
263 if (variax->buffer_activate == NULL) { 263 if (variax->buffer_activate == NULL)
264 dev_err(&interface->dev, "Out of memory\n");
265 return -ENOMEM; 264 return -ENOMEM;
266 }
267 265
268 /* initialize audio system: */ 266 /* initialize audio system: */
269 err = line6_init_audio(&variax->line6); 267 err = line6_init_audio(&variax->line6);