summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-09-25 00:37:36 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-26 20:37:31 +0400
commit68ad0ae0eac07911e6749e28da75d77d25524864 (patch)
treeb4f15cefa8216fb1ee33d63e99f0e53fba612021 /net/lapb/lapb_timer.c
parentf996ab29e9dd1ed607ea9ba708dff6fa4d253859 (diff)
downloadlinux-68ad0ae0eac07911e6749e28da75d77d25524864.tar.xz
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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions