]> git.baikalelectronics.ru Git - kernel.git/commit
TTY: unify tty_init_dev fail path handling
authorJiri Slaby <jslaby@suse.cz>
Wed, 23 Mar 2011 09:48:32 +0000 (10:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 21:42:59 +0000 (14:42 -0700)
commit4cd0d42978d9ed5454727135d945125828e582d7
tree24784d5465a5634afa89dd1d6fa67151cfaec1ff
parent9e92b9e6266510ea766b83274d6c434e3c07bd3b
TTY: unify tty_init_dev 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/tty_io.c