summaryrefslogtreecommitdiffstats
path: root/drivers/tty/synclink_gt.c
diff options
context:
space:
mode:
authorZheng Bin <zhengbin13@huawei.com>2020-01-13 03:16:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-14 14:34:03 +0100
commitbf22182cb7518450b518950d311b98711eb0d9bc (patch)
tree0131418cb98b4fd9e62d26988bf84ed69046c7b7 /drivers/tty/synclink_gt.c
parenttty: serial: msm_serial: RX SW/FIFO mode fallback (diff)
downloadlinux-bf22182cb7518450b518950d311b98711eb0d9bc.tar.xz
linux-bf22182cb7518450b518950d311b98711eb0d9bc.zip
tty: synclink_gt: use true,false for bool variable
Fixes coccicheck warning: drivers/tty/synclink_gt.c:2101:3-19: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zheng Bin <zhengbin13@huawei.com> Link: https://lore.kernel.org/r/1578881777-65475-2-git-send-email-zhengbin13@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/synclink_gt.c')
-rw-r--r--drivers/tty/synclink_gt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
index e8a9047de451..4113bbdfbed4 100644
--- a/drivers/tty/synclink_gt.c
+++ b/drivers/tty/synclink_gt.c
@@ -2098,7 +2098,7 @@ static void isr_rxdata(struct slgt_info *info)
if (desc_complete(info->rbufs[i])) {
/* all buffers full */
rx_stop(info);
- info->rx_restart = 1;
+ info->rx_restart = true;
continue;
}
info->rbufs[i].buf[count++] = (unsigned char)reg;