summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-01-29 17:40:27 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-01-29 17:40:27 +0000
commitec2c0077d4c59129ea5e9f32f64068da24c9e85b (patch)
tree35c19de34adb4813532814674b3152c573c84813 /lib
parent8badade5b327f7a3061f68af40e0b76195231e35 (diff)
There's no point in asserting that a pointer is not NULL before
dereferencing it. ok kettenis@, visa@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/thread/rthread_cond.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/thread/rthread_cond.c b/lib/libc/thread/rthread_cond.c
index 3fd9bfcd56e..51e9f4f9967 100644
--- a/lib/libc/thread/rthread_cond.c
+++ b/lib/libc/thread/rthread_cond.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_cond.c,v 1.4 2017/09/05 02:40:54 guenther Exp $ */
+/* $OpenBSD: rthread_cond.c,v 1.5 2019/01/29 17:40:26 mpi Exp $ */
/*
* Copyright (c) 2017 Martin Pieuchot <mpi@openbsd.org>
* Copyright (c) 2012 Philip Guenther <guenther@openbsd.org>
@@ -16,7 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <stdint.h>
@@ -52,7 +51,6 @@ pthread_cond_destroy(pthread_cond_t *condp)
{
pthread_cond_t cond;
- assert(condp != NULL);
cond = *condp;
if (cond != NULL) {