tty: Replace TTY_IO_ERROR bit tests with tty_io_error()
[deliverable/linux.git] / drivers / char / pcmcia / synclink_cs.c
index 22c27652e46a8dd6851a56edd408e39095eaa4ad..825db423b7a86ed396aae7f4d900c58c2b9d69eb 100644 (file)
@@ -2246,7 +2246,7 @@ static int mgslpc_ioctl(struct tty_struct *tty,
 
        if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) &&
            (cmd != TIOCMIWAIT)) {
-               if (tty->flags & (1 << TTY_IO_ERROR))
+               if (tty_io_error(tty))
                    return -EIO;
        }
 
This page took 0.061885 seconds and 5 git commands to generate.