staging: comedi: usbdux: tidy up usbdux_alloc_usb_buffers()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 30 Jul 2013 00:46:27 +0000 (17:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:44:58 +0000 (17:44 -0700)
commitef1e3c4a3b383c6da3979670fcb5c6e9c7de4741
treeb979071f4cd8489795cc3367112eb9ed7e3f3567
parentaa25b91304bbca0c79c6b1d736236cd2f817ca03
staging: comedi: usbdux: tidy up usbdux_alloc_usb_buffers()

Tidy up the error path by doing all the basic allocations then checking
for failures.

We have the comedi device now so fill in the urb->context.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbdux.c