summaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorYANG LI <abaci-bugfix@linux.alibaba.com>2021-01-11 12:24:23 +0300
committerJakub Kicinski <kuba@kernel.org>2021-01-13 07:18:30 +0300
commitf50e2f9f791647aa4e5b19d0064f5cabf630bf6e (patch)
treeccf16d00f1c49232367a142431c6b0eb4fadfa5a /net/nfc
parent8243fe8a9abbde5b25d9bc700e4007b60728bb6f (diff)
downloadlinux-f50e2f9f791647aa4e5b19d0064f5cabf630bf6e.tar.xz
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>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/hci/llc_shdlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/hci/llc_shdlc.c b/net/nfc/hci/llc_shdlc.c
index 0eb4ddc056e7..c0c8fea3a186 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)));