git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
916b765
)
TTY: amiserial, simplify set_serial_info
author
Jiri Slaby
<jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:21 +0000
(14:52 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:30:50 +0000
(12:30 -0800)
Do not copy whole serial_state. We only need to know whether the speed
is to be changed. Hence store the info in advance and use it later.
A simple bool is enough.
Also remove reduntant assignments and move the tests directly to the
'if'.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c
patch
|
blob
|
history
diff --cc
drivers/tty/amiserial.c
Simple merge