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>
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;
}