mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
staging/comedi: Use && instead of & for logical comparision
sparse complains that: drivers/staging/comedi/drivers/adl_pci9118.c:813 pci9118_calc_divisors() warn: maybe use && instead of & usessh is used as a boolean flag (0 and 1) and is compared to a boolean value so we should use && here. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f06a23c93b
commit
8289ad0578
|
|
@ -810,7 +810,7 @@ static void pci9118_calc_divisors(char mode, struct comedi_device *dev,
|
|||
*tim2 = *div1 * devpriv->i8254_osc_base;
|
||||
/* real convert timer */
|
||||
|
||||
if (usessh & (chnsshfront == 0)) /* use BSSH signal */
|
||||
if (usessh && (chnsshfront == 0)) /* use BSSH signal */
|
||||
if (*div2 < (chans + 2))
|
||||
*div2 = chans + 2;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user