]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pcf85063: silence cppcheck warning
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 7 Nov 2021 22:53:48 +0000 (23:53 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 9 Nov 2021 23:45:35 +0000 (00:45 +0100)
commitdbc9e7873032ab2758eb5d0514c1e819f7731b21
tree17b2d8a69ce326148e315b145b95d39ca2218eeb
parent8edde02a5a26e0e83fd5c16f83f1f2dd8c4ad8ec
rtc: pcf85063: silence cppcheck warning

cppcheck warnings: (new ones prefixed by >>)

>> drivers/rtc/rtc-pcf85063.c:292:40: warning: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
     status = status & PCF85063_REG_SC_OS ? RTC_VL_DATA_INVALID : 0;

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211107225349.110707-1-alexandre.belloni@bootlin.com
drivers/rtc/rtc-pcf85063.c