about summary refs log tree commit diff
path: root/nptl/pt-close.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-close.c')
-rw-r--r--nptl/pt-close.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/nptl/pt-close.c b/nptl/pt-close.c
index 85115c9c23..0edde5ea5d 100644
--- a/nptl/pt-close.c
+++ b/nptl/pt-close.c
@@ -27,15 +27,12 @@
 int
 __close (int fd)
 {
-  int oldtype;
-  int result;
-
-  CANCEL_ASYNC (oldtype);
+  int oldtype = CANCEL_ASYNC ();
 
 #ifdef INLINE_SYSCALL
-  result = INLINE_SYSCALL (close, 1, fd);
+  int result = INLINE_SYSCALL (close, 1, fd);
 #else
-  result = __libc_close (fd);
+  int result = __libc_close (fd);
 #endif
 
   CANCEL_RESET (oldtype);