]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/old_pthread_cond_timedwait.c
Assume LLL_LOCK_INITIALIZER is 0
[thirdparty/glibc.git] / nptl / old_pthread_cond_timedwait.c
index f920320b13cc95958afb50cab5f779cd83c9102d..a1fde85825522ff9e74557a282eaa9d11cc23f01 100644 (file)
@@ -32,18 +32,9 @@ __pthread_cond_timedwait_2_0 (pthread_cond_2_0_t *cond, pthread_mutex_t *mutex,
     {
       pthread_cond_t *newcond;
 
-#if LLL_LOCK_INITIALIZER == 0
       newcond = (pthread_cond_t *) calloc (sizeof (pthread_cond_t), 1);
       if (newcond == NULL)
        return ENOMEM;
-#else
-      newcond = (pthread_cond_t *) malloc (sizeof (pthread_cond_t));
-      if (newcond == NULL)
-       return ENOMEM;
-
-      /* Initialize the condvar.  */
-      (void) pthread_cond_init (newcond, NULL);
-#endif
 
       if (atomic_compare_and_exchange_bool_acq (&cond->cond, newcond, NULL))
        /* Somebody else just initialized the condvar.  */