mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 05:20:58 +07:00
tty: 68328serial.c: move assignment out of if () block
We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cb4595a215
commit
ed334c0e3b
@ -508,7 +508,8 @@ static void change_speed(struct m68k_serial *info, struct tty_struct *tty)
|
||||
int i;
|
||||
|
||||
cflag = tty->termios.c_cflag;
|
||||
if (!(port = info->port))
|
||||
port = info->port;
|
||||
if (!port)
|
||||
return;
|
||||
|
||||
ustcnt = uart->ustcnt;
|
||||
|
Loading…
Reference in New Issue
Block a user