ALSA: snd-usb-us122l: Delete calls to preempt_disable
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Fri, 30 Dec 2011 00:42:01 +0000 (01:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Jan 2012 10:31:30 +0000 (11:31 +0100)
They are not needed here.

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usb_stream.c

index c400ade3ff08b8c18d8225a9688b38f9e1c487cc..1e7a47a86605078d2934720f168da85cbf8145ce 100644 (file)
@@ -674,7 +674,7 @@ dotry:
                inurb->transfer_buffer_length =
                        inurb->number_of_packets *
                        inurb->iso_frame_desc[0].length;
-               preempt_disable();
+
                if (u == 0) {
                        int now;
                        struct usb_device *dev = inurb->dev;
@@ -686,19 +686,17 @@ dotry:
                }
                err = usb_submit_urb(inurb, GFP_ATOMIC);
                if (err < 0) {
-                       preempt_enable();
                        snd_printk(KERN_ERR"usb_submit_urb(sk->inurb[%i])"
                                   " returned %i\n", u, err);
                        return err;
                }
                err = usb_submit_urb(outurb, GFP_ATOMIC);
                if (err < 0) {
-                       preempt_enable();
                        snd_printk(KERN_ERR"usb_submit_urb(sk->outurb[%i])"
                                   " returned %i\n", u, err);
                        return err;
                }
-               preempt_enable();
+
                if (inurb->start_frame != outurb->start_frame) {
                        snd_printd(KERN_DEBUG
                                   "u[%i] start_frames differ in:%u out:%u\n",