staging: comedi: usbduxsigma: tidy up tidy_up()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:56:36 +0000 (12:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:58 +0000 (20:40 +0900)
commite0b12e6e9af16257f9c9c47ef999d84513b2f3f0
tree399b1418a3832fda7e81a25e7d0cf470ac1a55b2
parent988f5541dbae1f28e0e317f04963aa0c0068520e
staging: comedi: usbduxsigma: tidy up tidy_up()

Rename the function so it has namespace associated with the driver.

For aesthetic reasons, move the function so it's near the one that
allocates the usb buffers.

Tidy up the function so it frees the buffers in the opposite order
they were allocated. Also remove the = NULL for all the buffers,
the driver is being detached so the comedi core will kfree the
private data.

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