From: YANG LI Date: Mon, 11 Jan 2021 09:24:23 +0000 (+0800) Subject: hci: llc_shdlc: style: Simplify bool comparison X-Git-Tag: v5.15~1802^2~351 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f50e2f9f791647aa4e5b19d0064f5cabf630bf6e;p=platform%2Fkernel%2Flinux-starfive.git 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 Reported-by: Abaci Robot Link: https://lore.kernel.org/r/1610357063-57705-1-git-send-email-abaci-bugfix@linux.alibaba.com Signed-off-by: Jakub Kicinski --- diff --git a/net/nfc/hci/llc_shdlc.c b/net/nfc/hci/llc_shdlc.c index 0eb4ddc..c0c8fea 100644 --- a/net/nfc/hci/llc_shdlc.c +++ b/net/nfc/hci/llc_shdlc.c @@ -236,7 +236,7 @@ static void llc_shdlc_rcv_i_frame(struct llc_shdlc *shdlc, goto exit; } - if (shdlc->t1_active == false) { + if (!shdlc->t1_active) { shdlc->t1_active = true; mod_timer(&shdlc->t1_timer, jiffies + msecs_to_jiffies(SHDLC_T1_VALUE_MS(shdlc->w)));