From c18c11c81a41608e4cd6ab6ce1c5e758d01a79a6 Mon Sep 17 00:00:00 2001 From: mvs Date: Wed, 27 Oct 2021 13:41:09 +0000 Subject: [PATCH] Replace 'DIAGNOSTIC' block within soqinsque() by KASSERT(9). ok sashan@ --- sys/kern/uipc_socket2.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 59229ef936d..66c76560958 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.114 2021/10/24 07:02:47 visa Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.115 2021/10/27 13:41:09 mvs Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -216,10 +216,7 @@ soqinsque(struct socket *head, struct socket *so, int q) { soassertlocked(head); -#ifdef DIAGNOSTIC - if (so->so_onq != NULL) - panic("soqinsque"); -#endif + KASSERT(so->so_onq == NULL); so->so_head = head; if (q == 0) { -- 2.20.1