]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: usbduxfast: tidy up usbduxfast_ai_stop()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:38:21 +0000 (13:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:28 +0000 (16:24 -0700)
commit32fa46b9e9efaceac3d6c009d33065da82f79732
treed2a825ec8300383dc7976ee2214d2835789c7712
parentcb8c0034781388e5213d766b7509b2330f57e652
staging: comedi: usbduxfast: tidy up usbduxfast_ai_stop()

Remove the devpriv sanity check, all the callers have previously
verified that its valid.

Absorb usbduxfast_unlink_urbs() into this function since it's the
only caller and the only thing it does is call usb_kill_urb().

This function will always succeed so just return 0 and remove the
local variable 'ret'.

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/usbduxfast.c