From: H Hartley Sweeten Date: Thu, 23 May 2013 19:56:36 +0000 (-0700) Subject: staging: comedi: usbduxsigma: tidy up tidy_up() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~444 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0b12e6e9af16257f9c9c47ef999d84513b2f3f0;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed