Remove a piece of dead code.

This commit is contained in:
Gleb Smirnoff 2017-06-07 01:21:34 +00:00
parent 63c1ff65d1
commit b94f68dc52

View File

@ -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;