From: Chase Southwood Date: Sun, 17 Aug 2014 04:26:11 +0000 (-0500) Subject: staging: comedi: dt3000: remove unneeded variable X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1087 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb3f491d3195510af1c79c37a01076b4408a2e3c;p=pandora-kernel.git staging: comedi: dt3000: remove unneeded variable Coccinelle (using scripts/coccinelle/tests/doublebitand.cocci) found this assignment because 0 is or'd twice. Upon inspection, I found that the variable "mode" is only assigned once and used once, and thus can be cleanly removed. This patch plugs its value straight into writew() and then removes the variable. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Cc: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed