From: Zheng Bin Date: Mon, 13 Jan 2020 02:16:14 +0000 (+0800) Subject: tty: synclink_gt: use true,false for bool variable X-Git-Tag: v5.6-rc1~139^2~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf22182cb7518450b518950d311b98711eb0d9bc;p=thirdparty%2Flinux.git 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 Signed-off-by: Zheng Bin Link: https://lore.kernel.org/r/1578881777-65475-2-git-send-email-zhengbin13@huawei.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index e8a9047de4516..4113bbdfbed40 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;