projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88c1d24
)
tty: moxa: use semi-colons instead of commas
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 25 Aug 2021 07:24:05 +0000
(10:24 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 12:48:07 +0000
(14:48 +0200)
This code works but it's cleaner to use a semi-colon to end a statement
instead of a comma.
Acked-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link:
https://lore.kernel.org/r/20210825072405.GA13013@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/moxa.c
patch
|
blob
|
history
diff --git
a/drivers/tty/moxa.c
b/drivers/tty/moxa.c
index 776f78de0f829088fe9b6bb5a2b255231b00a10d..bf17e90858b8cd75e0aa54f1fa28a5717526b1ef 100644
(file)
--- a/
drivers/tty/moxa.c
+++ b/
drivers/tty/moxa.c
@@
-2034,10
+2034,10
@@
static int moxa_get_serial_info(struct tty_struct *tty,
if (!info)
return -ENODEV;
mutex_lock(&info->port.mutex);
- ss->type = info->type
,
- ss->line = info->port.tty->index
,
- ss->flags = info->port.flags
,
- ss->baud_base = 921600
,
+ ss->type = info->type
;
+ ss->line = info->port.tty->index
;
+ ss->flags = info->port.flags
;
+ ss->baud_base = 921600
;
ss->close_delay = jiffies_to_msecs(info->port.close_delay) / 10;
mutex_unlock(&info->port.mutex);
return 0;