From: Peter Hurley Date: Mon, 11 Mar 2013 20:44:25 +0000 (-0400) Subject: tty: Remove unnecessary re-test of ldisc ref count X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~136^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2276ad9765b395577442d6ddf748f72c329234ae;p=pandora-kernel.git tty: Remove unnecessary re-test of ldisc ref count 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 cleared) Removal of the 'early-out' locking optimization is necessary for the subsequent patch 'tty: Fix ldisc halt sequence on hangup'. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed