diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-04-09 20:06:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 12:26:55 -0400 |
commit | 18900ca65a8553edc608b6c9d518eb31e6c09ba1 (patch) | |
tree | 6712f933f9145ce4ad365388817266c0c9ebac68 /arch/ia64/hp | |
parent | 1aabf523a288b09d660992c22e307110c70f746d (diff) |
tty: Replace TTY_IO_ERROR bit tests with tty_io_error()
Abstract TTY_IO_ERROR status test treewide with tty_io_error().
NB: tty->flags uses atomic bit ops; replace non-atomic bit test
with test_bit().
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index e70cadec7ce6..21fd50def270 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -300,7 +300,7 @@ static int rs_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) | |||
300 | if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && | 300 | if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && |
301 | (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) && | 301 | (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) && |
302 | (cmd != TIOCMIWAIT)) { | 302 | (cmd != TIOCMIWAIT)) { |
303 | if (tty->flags & (1 << TTY_IO_ERROR)) | 303 | if (tty_io_error(tty)) |
304 | return -EIO; | 304 | return -EIO; |
305 | } | 305 | } |
306 | 306 | ||