about summary refs log tree commit diff
path: root/stdlib/nrand48_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/nrand48_r.c')
-rw-r--r--stdlib/nrand48_r.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/stdlib/nrand48_r.c b/stdlib/nrand48_r.c
index 1bbc29e7ef..d5ebf35dd2 100644
--- a/stdlib/nrand48_r.c
+++ b/stdlib/nrand48_r.c
@@ -25,13 +25,6 @@ nrand48_r (xsubi, buffer, result)
      struct drand48_data *buffer;
      long *result;
 {
-  /* Be generous for the arguments, detect some errors.  */
-  if (result == NULL)
-    {
-      errno = EFAULT;
-      return -1;
-    }
-
   /* Compute next state.  */
   if (__drand48_iterate (xsubi, buffer) < 0)
     return -1;