diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-03-22 14:04:09 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-03-24 08:07:25 +1000 |
commit | 0ecfab89d1754b0b7e32b3964b40663d1810cd62 (patch) | |
tree | ab5123a5e2b14b36c566396b98eb30e57d7c4650 /hw | |
parent | 6389405b56d2221d8a7b80c4bb3bd3b4e1a29bab (diff) |
xfree86: remove if 1 from the dawn of time.
7+ years for an if 1 should be enough to just admit that there's no other
option.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/os-support/shared/posix_tty.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c index bf1bb03a3..4ba8599ab 100644 --- a/hw/xfree86/os-support/shared/posix_tty.c +++ b/hw/xfree86/os-support/shared/posix_tty.c @@ -137,19 +137,9 @@ xf86OpenSerial (pointer options) if (!isatty (fd)) { -#if 1 /* Allow non-tty devices to be opened. */ xfree(dev); return (fd); -#else - xf86Msg (X_WARNING, - "xf86OpenSerial: Specified device %s is not a tty\n", - dev); - SYSCALL (close (fd)); - errno = EINVAL; - xfree(dev); - return (-1); -#endif } /* set up default port parameters */ |