staging: comedi: s626: remove 'allocatedBuf' from private data
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 24 Sep 2012 20:37:36 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 16:37:31 +0000 (09:37 -0700)
commit68ad0ae0eac07911e6749e28da75d77d25524864
treeb4f15cefa8216fb1ee33d63e99f0e53fba612021
parentf996ab29e9dd1ed607ea9ba708dff6fa4d253859
staging: comedi: s626: remove 'allocatedBuf' from private data

This variable is only used to count the number of dma buffers
allocated during the attach. If an allocation fails, the attach
function exits with -ENOMEM. When this variable is checked later
it will always be == 2. Just remove the variable and the check.

This allows bringing the code back an indent level in
s626_initialize(). Note, coding style issues in this function
are not addressed yet.

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/s626.c