Commit 0c32b57e authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: usbduxsigma: absorb usbduxsub_unlink_OutURBs() into caller

This function is only called by usbdux_ao_stop(). Absorb it.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc29c6fa
...@@ -424,20 +424,16 @@ static void usbduxsub_ai_IsocIrq(struct urb *urb) ...@@ -424,20 +424,16 @@ static void usbduxsub_ai_IsocIrq(struct urb *urb)
comedi_event(this_usbduxsub->comedidev, s); comedi_event(this_usbduxsub->comedidev, s);
} }
static void usbduxsub_unlink_OutURBs(struct usbduxsub *devpriv) static void usbdux_ao_stop(struct usbduxsub *devpriv, int do_unlink)
{ {
int i; if (do_unlink) {
int i;
for (i = 0; i < devpriv->numOfOutBuffers; i++) { for (i = 0; i < devpriv->numOfOutBuffers; i++) {
if (devpriv->urbOut[i]) if (devpriv->urbOut[i])
usb_kill_urb(devpriv->urbOut[i]); usb_kill_urb(devpriv->urbOut[i]);
}
} }
}
static void usbdux_ao_stop(struct usbduxsub *devpriv, int do_unlink)
{
if (do_unlink)
usbduxsub_unlink_OutURBs(devpriv);
devpriv->ao_cmd_running = 0; devpriv->ao_cmd_running = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment