Re: [PATCH] staging: pi433: fix check for FDEVMSB register mask

2017-08-14 Thread Greg KH
On Sun, Aug 13, 2017 at 09:43:50PM +0200, Frederico Cadete wrote: > The code was using the logical negation operator "!", effectively never > triggering the error path. To check the bitmask we should use the > bitwise negation "~". > > Cleans up sparse warning: > warning: dubious: x & !y > > Si

[PATCH] staging: pi433: fix check for FDEVMSB register mask

2017-08-13 Thread Frederico Cadete
The code was using the logical negation operator "!", effectively never triggering the error path. To check the bitmask we should use the bitwise negation "~". Cleans up sparse warning: warning: dubious: x & !y Signed-off-by: Frederico Cadete --- drivers/staging/pi433/rf69.c | 2 +- 1 file ch