about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/ttyname_r.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/ttyname_r.c b/sysdeps/unix/sysv/linux/ttyname_r.c
index ae5a029e65..3255ce3e00 100644
--- a/sysdeps/unix/sysv/linux/ttyname_r.c
+++ b/sysdeps/unix/sysv/linux/ttyname_r.c
@@ -165,10 +165,6 @@ __ttyname_r (fd, buf, buflen)
 	{
 	  __set_errno (save);
 	  ret = ENOENT;
-	}
-      else
-	{
-	  __set_errno (save);
 	  dev_pts_available = 0;
 	}
     }