staging: comedi: dt3000: remove unneeded variable
authorChase Southwood <chase.southwood@gmail.com>
Sun, 17 Aug 2014 04:26:11 +0000 (23:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:16:19 +0000 (13:16 -0700)
commitcb3f491d3195510af1c79c37a01076b4408a2e3c
tree85c434cb9c7b2b6590caa76c9fd460333365e7eb
parentb5283aab0483020a13b83cca09a840e50c4a2f9c
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 <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt3000.c