From: H Hartley Sweeten Date: Thu, 25 Jul 2013 23:07:57 +0000 (-0700) Subject: staging: comedi: usbdux: tidy up unlink and stop helpers X-Git-Tag: v3.12-rc1~183^2~506 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c50bbb7cb0ba0d66aab4446b0554bd22e76f524;p=pandora-kernel.git staging: comedi: usbdux: tidy up unlink and stop helpers For aesthetic reasons, pass the comedi_device pointer to the unlink helpers instead of the private data pointer. All the unlink helpers simply call usb_kill_urb() to cancel any pending transfer requests. The usb passed to usb_kill_urb() can be NULL so the extra sanity check is not required. The unlink helpers will always return success so just make them void functions. Since the stop helpers will also always return success, make them void functions as well. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed