From: Jiri Slaby Date: Mon, 4 Jun 2012 11:35:35 +0000 (+0200) Subject: TTY: centralize fail paths in tty_register_driver X-Git-Tag: omap-cleanup-sparseirq-for-v3.7~181 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bb8a3d4109f3b267cca9f6f071e2298eed4f593;p=pandora-kernel.git TTY: centralize fail paths in tty_register_driver Currently, some failures are handled in if's false branches, some at the end of tty_register_driver via goto-labels. Let us handle the failures at the end of the functions to have the failure handling at a single place. The only thing needed is to label the lines properly and jump there. Signed-off-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed