]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: comedi: usbduxfast: tidy up firmwareUpload()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:39:34 +0000 (13:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:29 +0000 (16:24 -0700)
commit1b4997e60ed6d1f114b722051cd29718d1b8fc91
tree3d1bde91ee9aa3db27070ebcf2d5168dd8104cc0
parent060f2154d3d6f3c9daac444b482982c3ab845200
staging: comedi: usbduxfast: tidy up firmwareUpload()

Rename the CamelCase function and just pass the const struct
firmware * directly instead of parsing out the data and size.

Rename the CamelCasae local val 'fwBuf'.

Use goto to provide a common exit path that frees the local
buffer for the firmware when an error is encountered.

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