tty-ldisc: get rid of tty_ldisc_try_get() helper function
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 3 Aug 2009 23:01:28 +0000 (16:01 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:10 +0000 (13:13 -0700)
commit182274f85fc26ec3aa8c78dba8b0e7763af3c586
treec8113b35eb01ff57177829623e77603111f7d2a7
parentf0de0e8d3565ee7feba6228d99763d4cea2087a6
tty-ldisc: get rid of tty_ldisc_try_get() helper function

Now that the /proc/tty/ldiscs handling doesn't play games with 'struct
ldisc' any more, the only remaining user of 'tty_ldisc_try_get()' is
'tty_ldisc_get()' (note the lack of 'try').

And we're actually much better off folding the logic directly into that
file, since the 'try' part was always about trying to get the ldisc
operations, not the ldisc itself: and making that explicit inside of
'tty_ldisc_get()' clarifies the whole semantics.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>,
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@mail.by>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_ldisc.c