projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25ff38c
)
staging: pi433: replace logical not with bitwise
author
Quentin Swain
<dudebrobro179@gmail.com>
Tue, 15 Aug 2017 01:48:17 +0000
(21:48 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 18 Aug 2017 22:57:15 +0000
(15:57 -0700)
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>
drivers/staging/pi433/rf69.c
patch
|
blob
|
history
diff --git
a/drivers/staging/pi433/rf69.c
b/drivers/staging/pi433/rf69.c
index 85cd70d403badf161adf688a5ba73522e6329d60..3265786e80469a8c26d151db02fc374e691a2d41 100644
(file)
--- 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;
}