Skip to content

Commit

Permalink
staging: comedi: s626: remove 'allocatedBuf' from private data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent f996ab2 commit 68ad0ae
Showing 1 changed file with 194 additions and 205 deletions.
Loading

0 comments on commit 68ad0ae

Please sign in to comment.