staging: comedi: usbduxsigma: absorb usbduxsub_unlink_PwmURBs() into caller
This function is only called by usbdux_pwm_stop(). Absorb it.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/drivers/staging/comedi/drivers/usbduxsigma.c b/drivers/staging/comedi/drivers/usbduxsigma.c
index 2c8f78b..08710bf 100644
--- a/drivers/staging/comedi/drivers/usbduxsigma.c
+++ b/drivers/staging/comedi/drivers/usbduxsigma.c
@@ -1590,16 +1590,12 @@
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;
}