diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-30 11:22:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-10 19:04:16 +0200 |
commit | ed334c0e3b4def138a27c84d7331c304f87a4701 (patch) | |
tree | cd630ff69a55e2957a0840d44e6792f3743aeb4b /drivers/tty/serial/68328serial.c | |
parent | serial: sirf: use uart_port's fifosize for fifo related operation (diff) | |
download | linux-ed334c0e3b4def138a27c84d7331c304f87a4701.tar.xz linux-ed334c0e3b4def138a27c84d7331c304f87a4701.zip |
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>
Diffstat (limited to 'drivers/tty/serial/68328serial.c')
-rw-r--r-- | drivers/tty/serial/68328serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328serial.c index 5dc9c4bfa66e..748c18f8c8cd 100644 --- a/drivers/tty/serial/68328serial.c +++ b/drivers/tty/serial/68328serial.c @@ -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; |