aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2016-04-09 20:11:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-30 12:26:55 -0400
commit97ef38b8210d7459d4cb51668cdf3983772ac6b7 (patch)
treef011edb839f562892be0d70dc021ad08cec6745e /net/irda
parent18900ca65a8553edc608b6c9d518eb31e6c09ba1 (diff)
tty: Replace TTY_THROTTLED bit tests with tty_throttled()
Abstract TTY_THROTTLED bit tests with tty_throttled(). Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/irda')
-rw-r--r--net/irda/ircomm/ircomm_tty_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/irda/ircomm/ircomm_tty_ioctl.c b/net/irda/ircomm/ircomm_tty_ioctl.c
index 9beb011441fa..8d8fd28ff4d9 100644
--- a/net/irda/ircomm/ircomm_tty_ioctl.c
+++ b/net/irda/ircomm/ircomm_tty_ioctl.c
@@ -166,7 +166,7 @@ void ircomm_tty_set_termios(struct tty_struct *tty,
166 /* Handle transition away from B0 status */ 166 /* Handle transition away from B0 status */
167 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { 167 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) {
168 self->settings.dte |= IRCOMM_DTR; 168 self->settings.dte |= IRCOMM_DTR;
169 if (!C_CRTSCTS(tty) || !test_bit(TTY_THROTTLED, &tty->flags)) 169 if (!C_CRTSCTS(tty) || !tty_throttled(tty))
170 self->settings.dte |= IRCOMM_RTS; 170 self->settings.dte |= IRCOMM_RTS;
171 ircomm_param_request(self, IRCOMM_DTE, TRUE); 171 ircomm_param_request(self, IRCOMM_DTE, TRUE);
172 } 172 }