aboutsummaryrefslogtreecommitdiff
path: root/sys/netncp
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2008-03-25 09:39:02 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2008-03-25 09:39:02 +0000
commitea26d587291046c59102b34124187e7f602ee07d (patch)
treecf0376c9359f2d1ca6e4e8e4ad4a4f722dba61a7 /sys/netncp
parentb2798e25738fc58f40da5f2fe18186b8efc3c2c6 (diff)
downloadsrc-ea26d587291046c59102b34124187e7f602ee07d.tar.gz
src-ea26d587291046c59102b34124187e7f602ee07d.zip
Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT.
Removed dead code that assumed that M_TRYWAIT can return NULL; it's not true since the advent of MBUMA. Reviewed by: arch There are ongoing disputes as to whether we want to switch to directly using UMA flags M_WAITOK/M_NOWAIT for mbuf(9) allocation.
Notes
Notes: svn path=/head/; revision=177599
Diffstat (limited to 'sys/netncp')
-rw-r--r--sys/netncp/ncp_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netncp/ncp_sock.c b/sys/netncp/ncp_sock.c
index 426f40c8bcdc..3c4d5b9708a6 100644
--- a/sys/netncp/ncp_sock.c
+++ b/sys/netncp/ncp_sock.c
@@ -163,7 +163,7 @@ ncp_sock_send(struct socket *so, struct mbuf *top, struct ncp_rq *rqp)
int error, flags=0;
for (;;) {
- m = m_copym(top, 0, M_COPYALL, M_TRYWAIT);
+ m = m_copym(top, 0, M_COPYALL, M_WAIT);
/* NCPDDEBUG(m);*/
error = sosend(so, to, 0, m, 0, flags, td);
if (error == 0 || error == EINTR || error == ENETDOWN)