staging: comedi: amplc_pci224: omit '!= 0' from logical expressions
authorIan Abbott <abbotti@mev.co.uk>
Thu, 31 Jul 2014 13:47:45 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:08 +0000 (12:23 -0700)
commitfe3cda6d39bba3368ed9823f78bbd145e3a1416e
treecafacd694e8c21d7916a4409fec0e72531261969
parentbf6002d898630cc3042f5f727f2ebf0ec4ebabb0
staging: comedi: amplc_pci224: omit '!= 0' from logical expressions

Since anything non-zero is logically "true", don't bother doing
"not-equal" comparisons with zero, except when testing for an explicit
number 0 (not as a result of bit tests for example).

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci224.c