Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hci: llc_shdlc: style: Simplify bool comparison

Fix the following coccicheck warning:
./net/nfc/hci/llc_shdlc.c:239:5-21: WARNING: Comparison to bool

Signed-off-by: YANG LI <abaci-bugfix@linux.alibaba.com>
Reported-by: Abaci Robot<abaci@linux.alibaba.com>
Link: https://lore.kernel.org/r/1610357063-57705-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

YANG LI and committed by
Jakub Kicinski
f50e2f9f 8243fe8a

+1 -1
+1 -1
net/nfc/hci/llc_shdlc.c
··· 236 236 goto exit; 237 237 } 238 238 239 - if (shdlc->t1_active == false) { 239 + if (!shdlc->t1_active) { 240 240 shdlc->t1_active = true; 241 241 mod_timer(&shdlc->t1_timer, jiffies + 242 242 msecs_to_jiffies(SHDLC_T1_VALUE_MS(shdlc->w)));