]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TTY: unify pty_install fail path handling
authorJiri Slaby <jslaby@suse.cz>
Wed, 23 Mar 2011 09:48:33 +0000 (10:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 21:43:00 +0000 (14:43 -0700)
commit8a1b8d70a07628f294f30485acf81971e3fcc755
tree7b5d373ebf176c5db694aeae42525a62952c1434
parentd55435037539837a741d54690427d37f96ed87fa
TTY: unify pty_install fail path handling

Change it so that we call the deinit functions at one place at the end
of the function (by gotos). And while at it use some sane label names.

This is a preparation for the deinitialization of tty in the next
patch.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/pty.c