]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e572fad4641a9c617c8213c360d899f17159c7b
treec8113b35eb01ff57177829623e77603111f7d2a7
parentf25376b1348881b86fe9ecf00165bf3b09deb7dc
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