projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76460fb
)
tty: synclink_gt: use true,false for bool variable
author
Zheng Bin
<zhengbin13@huawei.com>
Mon, 13 Jan 2020 02:16:14 +0000
(10:16 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 13:34:03 +0000
(14:34 +0100)
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>
drivers/tty/synclink_gt.c
patch
|
blob
|
history
diff --git
a/drivers/tty/synclink_gt.c
b/drivers/tty/synclink_gt.c
index e8a9047de45168b207e14802c6e0c5e764f1c896..4113bbdfbed406e45d181aa51bc1bd408eb3fe57 100644
(file)
--- 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;