TTY: coalesce fail paths in tty_open
authorJiri Slaby <jslaby@suse.cz>
Wed, 9 Nov 2011 20:33:21 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 23:52:46 +0000 (15:52 -0800)
commitba5db44895ec3abc5317a9af86001e688a72185c
treebb35ca9d8757c581cc9f4cd6871355aaed862244
parent5b5e70408f1e8a48deebedc26ba982bbc7db343e
TTY: coalesce fail paths in tty_open

Move them to the end of the function and use gotos as usual.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/tty_io.c