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

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

This function is only called by usbdux_pwm_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 7bcc3131
......@@ -1590,16 +1590,12 @@ static int usbdux_dio_insn_bits(struct comedi_device *dev,
return insn->n;
}
static void usbduxsub_unlink_PwmURBs(struct usbduxsub *devpriv)
{
if (devpriv->urbPwm)
usb_kill_urb(devpriv->urbPwm);
}
static void usbdux_pwm_stop(struct usbduxsub *devpriv, int do_unlink)
{
if (do_unlink)
usbduxsub_unlink_PwmURBs(devpriv);
if (do_unlink) {
if (devpriv->urbPwm)
usb_kill_urb(devpriv->urbPwm);
}
devpriv->pwm_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