diff options
author | Quentin Swain <dudebrobro179@gmail.com> | 2017-08-14 21:48:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-18 15:57:15 -0700 |
commit | f2aee92d1865d8ff49fa7d715be638c849c650cf (patch) | |
tree | 957239a9a4a61b577f32395864092ed36e3a26ef /drivers/staging/pi433 | |
parent | 25ff38ca79a9336ea34cc0d0b0b0b39ad7836d28 (diff) | |
download | linux-f2aee92d1865d8ff49fa7d715be638c849c650cf.tar.bz2 |
staging: pi433: replace logical not with bitwise
sparse reports the following warning "warning: dubious: x & !y".
Replaced te logical not with bitwise to resolve the warning
Signed-off-by: Quentin Swain <dudebrobro179@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/pi433')
-rw-r--r-- | drivers/staging/pi433/rf69.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 85cd70d403ba..3265786e8046 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -197,7 +197,7 @@ int rf69_set_deviation(struct spi_device *spi, u32 deviation) lsb = (f_reg&0xff); // check msb - if (msb & !FDEVMASB_MASK) { + if (msb & ~FDEVMASB_MASK) { dev_dbg(&spi->dev, "set_deviation: err in calc of msb"); INVALID_PARAM; } |