]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hci: llc_shdlc: style: Simplify bool comparison
authorYANG LI <abaci-bugfix@linux.alibaba.com>
Mon, 11 Jan 2021 09:24:23 +0000 (17:24 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 04:18:30 +0000 (20:18 -0800)
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>
net/nfc/hci/llc_shdlc.c

index 0eb4ddc056e789219bf09665a591246eac1b88bf..c0c8fea3a1864cf2e312f8646b1c02092d4b880d 100644 (file)
@@ -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)));