Commit f2aee92d authored by Quentin Swain's avatar Quentin Swain Committed by Greg Kroah-Hartman
Browse files

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: default avatarQuentin Swain <dudebrobro179@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 25ff38ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}