]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_pci230: fix a precedence bug
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Aug 2014 07:55:51 +0000 (10:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:28:15 +0000 (13:28 -0700)
commit9d07c0ceecdf181fb99f4f87478633318150e45e
tree0d6f5336f6c5cf235bc4d990bd277c23e0401bfd
parent4286a80a9013a90f1c78b48788790f28c7121ccb
staging: comedi: amplc_pci230: fix a precedence bug

The addition operation has higher precedence than ?: so this would write
to PCI230_DACOUT1 instead of devpriv->daqio + PCI230_DACOUT1.

Fixes: 60b05ba5ed68 ('staging: comedi: amplc_pci230: refactor iobase addresses')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci230.c