From: H Hartley Sweeten Date: Mon, 24 Sep 2012 20:37:36 +0000 (-0700) Subject: staging: comedi: s626: remove 'allocatedBuf' from private data X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68ad0ae0eac07911e6749e28da75d77d25524864;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed