projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8243fe8
)
hci: llc_shdlc: style: Simplify bool comparison
author
YANG LI
<abaci-bugfix@linux.alibaba.com>
Mon, 11 Jan 2021 09:24:23 +0000
(17:24 +0800)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/net/nfc/hci/llc_shdlc.c
b/net/nfc/hci/llc_shdlc.c
index 0eb4ddc056e789219bf09665a591246eac1b88bf..c0c8fea3a1864cf2e312f8646b1c02092d4b880d 100644
(file)
--- 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 == fals
e) {
+ if (
!shdlc->t1_activ
e) {
shdlc->t1_active = true;
mod_timer(&shdlc->t1_timer, jiffies +
msecs_to_jiffies(SHDLC_T1_VALUE_MS(shdlc->w)));