• Jiri Slaby's avatar
    TTY: extract driver lookup from tty_open · 5b5e7040
    Jiri Slaby authored
    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: default avatarJiri Slaby <jslaby@suse.cz>
    Cc: Alan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    5b5e7040
tty_io.c 83.3 KB