diff options
author | pjd <pjd@FreeBSD.org> | 2006-06-06 13:32:26 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-06-06 13:32:26 +0000 |
commit | 95669b8564a94fa59b4325622772ba359ce67b1a (patch) | |
tree | d2473151c15f688975cade988699de4db7f6a21e /sys | |
parent | 581608f9564c6c97561dd084fea5691d2c0d0f9a (diff) | |
download | FreeBSD-src-95669b8564a94fa59b4325622772ba359ce67b1a.zip FreeBSD-src-95669b8564a94fa59b4325622772ba359ce67b1a.tar.gz |
Don't increase hst_obytes field twice - it is already done at the begining
of the function.
It was wrong anyway, because we also support uio's structures, not only
mbufs.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ubsec/ubsec.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c index e8ea638..9f83e43 100644 --- a/sys/dev/ubsec/ubsec.c +++ b/sys/dev/ubsec/ubsec.c @@ -1597,7 +1597,6 @@ ubsec_callback(struct ubsec_softc *sc, struct ubsec_q *q) m_freem(q->q_src_m); crp->crp_buf = (caddr_t)q->q_dst_m; } - ubsecstats.hst_obytes += ((struct mbuf *)crp->crp_buf)->m_len; /* copy out IV for future use */ if (q->q_flags & UBSEC_QFLAGS_COPYOUTIV) { |