提交 925d70d6 编写于 作者: A Alan Cox 提交者: Linus Torvalds

[PATCH] Remove long dead #if 0 code from rio_param

Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 09979236
...@@ -195,27 +195,6 @@ int SleepFlag; ...@@ -195,27 +195,6 @@ int SleepFlag;
** paramed with OPEN, we want to restore the saved port termio, but ** paramed with OPEN, we want to restore the saved port termio, but
** only if StoredTermio has been saved, i.e. NOT 1st open after reboot. ** only if StoredTermio has been saved, i.e. NOT 1st open after reboot.
*/ */
#if 0
if (PortP->FirstOpen) {
PortP->StoredTty.iflag = TtyP->tm.c_iflag;
PortP->StoredTty.oflag = TtyP->tm.c_oflag;
PortP->StoredTty.cflag = TtyP->tm.c_cflag;
PortP->StoredTty.lflag = TtyP->tm.c_lflag;
PortP->StoredTty.line = TtyP->tm.c_line;
for (i = 0; i < NCC + 5; i++)
PortP->StoredTty.cc[i] = TtyP->tm.c_cc[i];
PortP->FirstOpen = 0;
} else if (PortP->Store || PortP->Lock) {
rio_dprintk(RIO_DEBUG_PARAM, "OPEN: Restoring stored/locked params\n");
TtyP->tm.c_iflag = PortP->StoredTty.iflag;
TtyP->tm.c_oflag = PortP->StoredTty.oflag;
TtyP->tm.c_cflag = PortP->StoredTty.cflag;
TtyP->tm.c_lflag = PortP->StoredTty.lflag;
TtyP->tm.c_line = PortP->StoredTty.line;
for (i = 0; i < NCC + 5; i++)
TtyP->tm.c_cc[i] = PortP->StoredTty.cc[i];
}
#endif
} }
/* /*
...@@ -273,16 +252,6 @@ int SleepFlag; ...@@ -273,16 +252,6 @@ int SleepFlag;
phb_param_ptr = (struct phb_param *) PacketP->data; phb_param_ptr = (struct phb_param *) PacketP->data;
#if 0
/*
** COR 1
*/
if (TtyP->tm.c_iflag & INPCK) {
rio_dprintk(RIO_DEBUG_PARAM, "Parity checking on input enabled\n");
Cor1 |= COR1_INPCK;
}
#endif
switch (TtyP->termios->c_cflag & CSIZE) { switch (TtyP->termios->c_cflag & CSIZE) {
case CS5: case CS5:
{ {
...@@ -523,10 +492,6 @@ int SleepFlag; ...@@ -523,10 +492,6 @@ int SleepFlag;
#ifdef XMT1EN #ifdef XMT1EN
if (TtyP->termios->c_cflag & XMT1EN) if (TtyP->termios->c_cflag & XMT1EN)
rio_dprintk(RIO_DEBUG_PARAM, "XMT1EN (?)\n"); rio_dprintk(RIO_DEBUG_PARAM, "XMT1EN (?)\n");
#endif
#if 0
if (TtyP->termios->c_cflag & LOBLK)
rio_dprintk(RIO_DEBUG_PARAM, "LOBLK - JCL output blocks when not current\n");
#endif #endif
if (TtyP->termios->c_lflag & ISIG) if (TtyP->termios->c_lflag & ISIG)
rio_dprintk(RIO_DEBUG_PARAM, "Input character signal generating enabled\n"); rio_dprintk(RIO_DEBUG_PARAM, "Input character signal generating enabled\n");
...@@ -572,14 +537,6 @@ int SleepFlag; ...@@ -572,14 +537,6 @@ int SleepFlag;
rio_dprintk(RIO_DEBUG_PARAM, "Carriage return delay set\n"); rio_dprintk(RIO_DEBUG_PARAM, "Carriage return delay set\n");
if (TtyP->termios->c_oflag & TABDLY) if (TtyP->termios->c_oflag & TABDLY)
rio_dprintk(RIO_DEBUG_PARAM, "Tab delay set\n"); rio_dprintk(RIO_DEBUG_PARAM, "Tab delay set\n");
#if 0
if (TtyP->termios->c_oflag & BSDLY)
rio_dprintk(RIO_DEBUG_PARAM, "Back-space delay set\n");
if (TtyP->termios->c_oflag & VTDLY)
rio_dprintk(RIO_DEBUG_PARAM, "Vertical tab delay set\n");
if (TtyP->termios->c_oflag & FFDLY)
rio_dprintk(RIO_DEBUG_PARAM, "Form-feed delay set\n");
#endif
/* /*
** These things are kind of useful in a later life! ** These things are kind of useful in a later life!
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册