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>
This commit is contained in:
Quentin Swain 2017-08-14 21:48:17 -04:00 committed by Greg Kroah-Hartman
parent 25ff38ca79
commit f2aee92d18
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ int rf69_set_deviation(struct spi_device *spi, u32 deviation)
lsb = (f_reg&0xff); lsb = (f_reg&0xff);
// check msb // check msb
if (msb & !FDEVMASB_MASK) { if (msb & ~FDEVMASB_MASK) {
dev_dbg(&spi->dev, "set_deviation: err in calc of msb"); dev_dbg(&spi->dev, "set_deviation: err in calc of msb");
INVALID_PARAM; INVALID_PARAM;
} }