Commit 322003b9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

tty: moxa: use semi-colons instead of commas

This code works but it's cleaner to use a semi-colon to end a statement
instead of a comma.
Acked-by: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210825072405.GA13013@kiliSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 88c1d247
...@@ -2034,10 +2034,10 @@ static int moxa_get_serial_info(struct tty_struct *tty, ...@@ -2034,10 +2034,10 @@ static int moxa_get_serial_info(struct tty_struct *tty,
if (!info) if (!info)
return -ENODEV; return -ENODEV;
mutex_lock(&info->port.mutex); mutex_lock(&info->port.mutex);
ss->type = info->type, ss->type = info->type;
ss->line = info->port.tty->index, ss->line = info->port.tty->index;
ss->flags = info->port.flags, ss->flags = info->port.flags;
ss->baud_base = 921600, ss->baud_base = 921600;
ss->close_delay = jiffies_to_msecs(info->port.close_delay) / 10; ss->close_delay = jiffies_to_msecs(info->port.close_delay) / 10;
mutex_unlock(&info->port.mutex); mutex_unlock(&info->port.mutex);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment