summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2004-02-04 08:14:47 +0000
committersilby <silby@FreeBSD.org>2004-02-04 08:14:47 +0000
commit35af001226a7c26bdef63bfb05ed4596ab82306e (patch)
tree7c4c1e11bc21dffb33f99fcc9520af7824d2d413 /sys/kern/uipc_mbuf.c
parentdbee7341f26a062b44799fd4001a83ef164a1eb3 (diff)
downloadFreeBSD-src-35af001226a7c26bdef63bfb05ed4596ab82306e.zip
FreeBSD-src-35af001226a7c26bdef63bfb05ed4596ab82306e.tar.gz
Style fixes
Submitted by: bde
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 4a53f17..d36f9fb 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1041,22 +1041,17 @@ m_uiotombuf(struct uio *uio, int how, int len)
total = min(uio->uio_resid, len);
else
total = uio->uio_resid;
-
if (total > MHLEN)
m_final = m_getcl(how, MT_DATA, M_PKTHDR);
else
m_final = m_gethdr(how, MT_DATA);
-
if (m_final == NULL)
goto nospace;
-
m_new = m_final;
-
while (progress < total) {
length = total - progress;
if (length > MCLBYTES)
length = MCLBYTES;
-
if (m_new == NULL) {
if (length > MLEN)
m_new = m_getcl(how, MT_DATA, 0);
@@ -1065,7 +1060,6 @@ m_uiotombuf(struct uio *uio, int how, int len)
if (m_new == NULL)
goto nospace;
}
-
error = uiomove(mtod(m_new, void *), length, uio);
if (error)
goto nospace;
OpenPOWER on IntegriCloud