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>
This commit is contained in:
Peter Hutterer 2010-03-22 14:04:09 +10:00
parent 6389405b56
commit 0ecfab89d1

View File

@ -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 */