TTY: unify pty_unix98_install fail path handling
authorJiri Slaby <jslaby@suse.cz>
Wed, 23 Mar 2011 09:48:34 +0000 (10:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 21:43:00 +0000 (14:43 -0700)
commitc18d77aa00cde1215d9e045ba8f93004fe843f38
treed31768d04e2cbda73df242e6a9445a9ab62956a8
parent8a1b8d70a07628f294f30485acf81971e3fcc755
TTY: unify pty_unix98_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