diff options
author | 2019-01-29 17:40:26 +0000 | |
---|---|---|
committer | 2019-01-29 17:40:26 +0000 | |
commit | f3cfced65d8763697064247625744e9c5b07f080 (patch) | |
tree | 8d888a0286dec475b86f91c0d566483f94d9a06f /lib/libc | |
parent | Tweak description, pthread_cond_signal(3) unblocks *at least* one thread. (diff) | |
download | wireguard-openbsd-f3cfced65d8763697064247625744e9c5b07f080.tar.xz wireguard-openbsd-f3cfced65d8763697064247625744e9c5b07f080.zip |
There's no point in asserting that a pointer is not NULL before
dereferencing it.
ok kettenis@, visa@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/thread/rthread_cond.c | 4 |
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) { |