rtc: sc27xx: Remove unnecessary conversion to bool
authorKaixu Xia <kaixuxia@tencent.com>
Fri, 6 Nov 2020 07:30:54 +0000 (15:30 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Nov 2020 22:30:10 +0000 (23:30 +0100)
commit825156a5eeded9bcb55e9c36d4b4b72bf20bcba6
tree7466e5090f21fbe275f34341de38c7d4381f6b08
parent28d211919e422f58c1e6c900e5810eee4f1ce4c8
rtc: sc27xx: Remove unnecessary conversion to bool

Here we could use the '!=' expression to fix the following coccicheck
warning:

./drivers/rtc/rtc-sc27xx.c:566:50-55: WARNING: conversion to bool not needed here

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1604647854-876-1-git-send-email-kaixuxia@tencent.com
drivers/rtc/rtc-sc27xx.c