aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYANG LI <[email protected]>2021-01-11 17:24:23 +0800
committerJakub Kicinski <[email protected]>2021-01-12 20:18:30 -0800
commitf50e2f9f791647aa4e5b19d0064f5cabf630bf6e (patch)
treeccf16d00f1c49232367a142431c6b0eb4fadfa5a
parent8243fe8a9abbde5b25d9bc700e4007b60728bb6f (diff)
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 <[email protected]> Reported-by: Abaci Robot<[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-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)));