]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd76a326097a222669374a4316df1ad57279ba516
tree1010ee2de51f0b55bd7acef80a7dc22afbf70081
parent387516cebb8c95608e8292d016123e857e5a9e00
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: 2a15af26f576 ("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