[PATCH -next 5/9] tty: Remove unnecessary re-test of ldisc ref count

2012-12-03 Thread Peter Hurley
Since the tty->ldisc is prevented from being changed by tty_set_ldisc() when a tty is being hung up, re-testing the ldisc user count is unnecessary -- ie, it cannot be a different ldisc and the user count cannot have increased (assuming the caller meets the precondition that TTY_LDISC flag is

[PATCH -next 5/9] tty: Remove unnecessary re-test of ldisc ref count

2012-12-03 Thread Peter Hurley
Since the tty-ldisc is prevented from being changed by tty_set_ldisc() when a tty is being hung up, re-testing the ldisc user count is unnecessary -- ie, it cannot be a different ldisc and the user count cannot have increased (assuming the caller meets the precondition that TTY_LDISC flag is