projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c35e6ec
)
tty: amiserial: use bool and rename overrun flag in receive_chars()
author
Jiri Slaby (SUSE)
<jirislaby@kernel.org>
Tue, 21 Nov 2023 09:22:47 +0000
(10:22 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 25 Nov 2023 07:23:17 +0000
(07:23 +0000)
'oe' is a yes-no flag, switch it to boolean. And rename to overrun. All
for the code to be more obvious.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link:
https://lore.kernel.org/r/20231121092258.9334-7-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c
patch
|
blob
|
history
diff --git
a/drivers/tty/amiserial.c
b/drivers/tty/amiserial.c
index
b9580bb
..
a80f059
100644
(file)
--- a/
drivers/tty/amiserial.c
+++ b/
drivers/tty/amiserial.c
@@
-180,7
+180,7
@@
static void receive_chars(struct serial_state *info)
int serdatr;
unsigned char ch, flag;
struct async_icount *icount;
-
int oe = 0
;
+
bool overrun = false
;
icount = &info->icount;
@@
-251,11
+251,11
@@
static void receive_chars(struct serial_state *info)
* reported immediately, and doesn't
* affect the current character
*/
- o
e = 1
;
+ o
verrun = true
;
}
}
tty_insert_flip_char(&info->tport, ch, flag);
- if (o
e == 1
)
+ if (o
verrun
)
tty_insert_flip_char(&info->tport, 0, TTY_OVERRUN);
tty_flip_buffer_push(&info->tport);
}