mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 09:22:53 -04:00
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:
committed by
Greg Kroah-Hartman
parent
25ff38ca79
commit
f2aee92d18
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user