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

Tiago Vignatti tiago.vignatti at nokia.com
Tue Apr 20 06:30:20 PDT 2010


CLEARRTS_SUPPORT cannot be triggered at all. Notice thta mouse driver manual
page states the support for it though.

Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
Okay, what now Peter?

 hw/xfree86/os-support/shared/posix_tty.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c
index 4ba8599..da57939 100644
--- a/hw/xfree86/os-support/shared/posix_tty.c
+++ b/hw/xfree86/os-support/shared/posix_tty.c
@@ -340,14 +340,9 @@ xf86SetSerial (int fd, pointer options)
 
 	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");
 	}
 
-- 
1.6.0.4



More information about the xorg-devel mailing list