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:
parent
25ff38ca79
commit
f2aee92d18
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue