]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit407ceefb1cd7d8f04f1cf4be620293c77d538473
treed31768d04e2cbda73df242e6a9445a9ab62956a8
parent8a9a1f28a787e63edcdc194edf316bc241856754
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