Skip to content

Commit

Permalink
hci: llc_shdlc: style: Simplify bool comparison
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YANG LI authored and Jakub Kicinski committed Jan 13, 2021
1 parent 8243fe8 commit f50e2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/hci/llc_shdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit f50e2f9

Please sign in to comment.