]> git.karo-electronics.de Git - linux-beck.git/commit
n_tty: Reduce branching in canon_copy_from_read_buf()
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 27 Nov 2015 19:11:04 +0000 (14:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commitb985e9e368f0db4fee940ad86197f413779d4b63
tree45922ca0c6e3d0f3d1519516075280aa977b3119
parente661cf702003030daf2001cb88eb586300a18ee4
n_tty: Reduce branching in canon_copy_from_read_buf()

Instead of compare-and-set, just compute 'found'.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c