[PATCH] unneeded variable and simplification of uipc_mbuf.c

Thomas E. Spanjaard tgen at netphreax.net
Tue Oct 24 04:36:18 PDT 2006


tbert wrote:
-			if (len == M_COPYALL)
-				n->m_pkthdr.len -= off0;
-			else
+			if (len != M_COPYALL)
off0 is unneeded, and the subtraction of a known 0 value is
removed.
Are you sure m_copym is never called with an off0 of > 0 < ?

Cheers,
--
        Thomas E. Spanjaard
        tgen at xxxxxxxxxxxxx
Attachment:
signature.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00004.pgp
Type: application/octet-stream
Size: 186 bytes
Desc: "Description: OpenPGP digital signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20061024/f97b6586/attachment-0019.obj>


More information about the Submit mailing list