diff options
author | Jiri Slaby <jslaby@suse.cz> | 2011-04-20 10:43:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-25 14:19:12 -0700 |
commit | c831cff256c86588976e66bef7897633d534846c (patch) | |
tree | 8501a1e3c6e89f99f12106c1274743d51c41f1c3 /drivers | |
parent | 32ad3a77b256948a326c3f68db6acaad2b6953e7 (diff) | |
download | kernel_samsung_smdk4412-c831cff256c86588976e66bef7897633d534846c.zip kernel_samsung_smdk4412-c831cff256c86588976e66bef7897633d534846c.tar.gz kernel_samsung_smdk4412-c831cff256c86588976e66bef7897633d534846c.tar.bz2 |
TTY: serial_core, remove superfluous set_task_state
msleep* is guaranteed to return with TASK_RUNNING task state. And
since there is no other set_task_state in the paths of
uart_wait_until_sent, we need not to set_task_state to TASK_RUNNING.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/serial_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 69d0000..db7912c 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -1414,7 +1414,6 @@ static void __uart_wait_until_sent(struct uart_port *port, int timeout) if (time_after(jiffies, expire)) break; } - set_current_state(TASK_RUNNING); /* might not be needed */ } static void uart_wait_until_sent(struct tty_struct *tty, int timeout) |