DragonFly BSD
DragonFly submit List (threaded) for 2006-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [PATCH] unneeded variable and simplification of uipc_mbuf.c


From: "Thomas E. Spanjaard" <tgen@xxxxxxxxxxxxx>
Date: Tue, 24 Oct 2006 11:31:24 +0000

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

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]