]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: usbduxfast: absorb tidy_up() into the (*detach)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:30:52 +0000 (13:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:21 +0000 (16:24 -0700)
commit38bf7ba8a7e866350ac24f508f6b3a9685631dcb
treef4ab5b19a06f9bb14443e6ed5756c2b121c8b7f7
parent8f210c0cc3967452db2b98e94b20ef4ab38e6966
staging: comedi: usbduxfast: absorb tidy_up() into the (*detach)

Now that the usb (*probe) is handled in the comedi_driver (*auto_attach)
the comedi_driver (*detach) will be called automatically if the
attach fails.

The tidy_up() calls in the (*auto_attach) are not needed. Remove them
and absorb the code in tidy_up() into the (*detach).

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