From: Jiri Slaby Date: Wed, 9 Nov 2011 20:33:20 +0000 (+0100) Subject: TTY: extract driver lookup from tty_open X-Git-Tag: v3.3-rc1~154^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b5e70408f1e8a48deebedc26ba982bbc7db343e;p=pandora-kernel.git TTY: extract driver lookup from tty_open The error handling in tty_open became unbearable. There were many errors fixed recently. Extract the tty driver lookup from tty_open to a separate function. This reduces the fail paths significantly and makes tty_open more readable. In the next patch we will move the fail path handling to the end of the function. Signed-off-by: Jiri Slaby Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed