Commit 705a8f72 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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

This function is only called by usbdux_ai_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 c61454e1
......@@ -252,20 +252,16 @@ static struct usbduxsub usbduxsub[NUMUSBDUX];
static DEFINE_SEMAPHORE(start_stop_sem);
static void usbduxsub_unlink_InURBs(struct usbduxsub *devpriv)
static void usbdux_ai_stop(struct usbduxsub *devpriv, int do_unlink)
{
int i;
if (do_unlink) {
int i;
for (i = 0; i < devpriv->numOfInBuffers; i++) {
if (devpriv->urbIn[i])
usb_kill_urb(devpriv->urbIn[i]);
for (i = 0; i < devpriv->numOfInBuffers; i++) {
if (devpriv->urbIn[i])
usb_kill_urb(devpriv->urbIn[i]);
}
}
}
static void usbdux_ai_stop(struct usbduxsub *devpriv, int do_unlink)
{
if (do_unlink)
usbduxsub_unlink_InURBs(devpriv);
devpriv->ai_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