[PATCH] xfree86: fix not reached code in tty code

Tiago Vignatti tiago.vignatti at nokia.com
Mon Apr 19 10:58:08 PDT 2010


CLEARRTS_SUPPORT cannot be triggered at all.

Both commit logs and google don't show any clear reference about it, so I'd
vote to just delete.

Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 hw/xfree86/os-support/shared/posix_tty.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c
index 4ba8599..f77f902 100644
--- a/hw/xfree86/os-support/shared/posix_tty.c
+++ b/hw/xfree86/os-support/shared/posix_tty.c
@@ -338,19 +338,6 @@ xf86SetSerial (int fd, pointer options)
 		xf86MarkOptionUsedByName (options, "ClearDTR");
 	}
 
-	if ((xf86SetBoolOption (options, "ClearRTS", FALSE)))
-	{
-#ifdef CLEARRTS_SUPPORT
-		val = TIOCM_RTS;
-		SYSCALL (ioctl(fd, TIOCMBIC, &val));
-#else
-		xf86Msg (X_WARNING,
-			 "Option ClearRTS not supported on this OS\n");
-			return (-1);
-#endif
-		xf86MarkOptionUsedByName (options, "ClearRTS");
-	}
-
 	SYSCALL (r = tcsetattr (fd, TCSANOW, &t));
 	return (r);
 }
-- 
1.6.0.4



More information about the xorg-devel mailing list