TTY: hvcs, clean hvcs_open a bit
commit97d150898592be8d5381ebc8d435526df38a2791
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Aug 2012 19:48:05 +0000 (7 21:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Aug 2012 23:53:14 +0000 (13 16:53 -0700)
tree4ff19a2cf10d44945b4acd99ae489c4a9da7011b
parentbdb498c20040616e94b05c31a0ceb3e134b7e829
TTY: hvcs, clean hvcs_open a bit

Make the code of hvcs_open a bit more readable by:
- moving all assignments out of if's
- redoing fail paths so that corresponding pieces are nearby
- we need only one of retval and rc

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvcs.c