staging: comedi: usbduxsigma: absorb usbduxsub_unlink_PwmURBs() into caller
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:44:39 +0000 (12:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:44 +0000 (20:40 +0900)
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>
drivers/staging/comedi/drivers/usbduxsigma.c

index 2c8f78b190784d51324f0195d5afc5aec5913fd1..08710bfdc4e96ef93e0bbbe34707232bc0f40704 100644 (file)
@@ -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;
 }