staging: comedi: ni_mio_common: fix the ni_write[blw]() functions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 22 Mar 2016 17:04:48 +0000 (10:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Mar 2016 02:22:13 +0000 (22:22 -0400)
commitbd3a3cd6c27b117fb9a43a38c8072c95332beecc
tree1010ee2de51f0b55bd7acef80a7dc22afbf70081
parent982177677a835c7084f50206769bf58906d87d76
staging: comedi: ni_mio_common: fix the ni_write[blw]() functions

Memory mapped io (dev->mmio) should not also be writing to the ioport
(dev->iobase) registers. Add the missing 'else' to these functions.

Fixes: 0953ee4acca0 ("staging: comedi: ni_mio_common: checkpatch.pl cleanup (else not useful)")
Cc: <stable@vger.kernel.org> # 3.17+
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c