From: Joe Peterson Date: Wed, 9 Sep 2009 21:03:47 +0000 (-0600) Subject: n_tty: move echoctl check and clean up logic X-Git-Tag: v2.6.32-rc1~627^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b263585bb5005d44a764c90d80f9c4bb8188c1;p=pandora-kernel.git n_tty: move echoctl check and clean up logic Check L_ECHOCTL before insertting a character in the echo buffer (rather than as the buffer is processed), to be more consistent with when all other L_ flags are checked. Also cleaned up the related logic. Note that this and the previous patch ("n_tty: honor opost flag for echoes") were verified together by the reporters of the bug that patch addresses (http://bugs.linuxbase.org/show_bug.cgi?id=2692), and the test now passes. Signed-off-by: Joe Peterson Cc: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed