From b94f68dc524f2d92fbcd8c7ecde0b845f1398c00 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 7 Jun 2017 01:21:34 +0000 Subject: [PATCH] Remove a piece of dead code. --- sys/kern/uipc_socket.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 17118aee5bce..f8a2e86ee8b0 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -3575,10 +3575,6 @@ soupcall_set(struct socket *so, int which, panic("soupcall_set: bad which"); } SOCKBUF_LOCK_ASSERT(sb); -#if 0 - /* XXX: accf_http actually wants to do this on purpose. */ - KASSERT(sb->sb_upcall == NULL, ("soupcall_set: overwriting upcall")); -#endif sb->sb_upcall = func; sb->sb_upcallarg = arg; sb->sb_flags |= SB_UPCALL;