Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Remove unused variables
details: https://anonhg.NetBSD.org/src/rev/6f7f8513ff7f
branches: trunk
changeset: 790039:6f7f8513ff7f
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 13:43:20 2013 +0000
description:
Remove unused variables
diffstat:
sys/dev/ic/rrunner.c | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diffs (72 lines):
diff -r b9692da8ec56 -r 6f7f8513ff7f sys/dev/ic/rrunner.c
--- a/sys/dev/ic/rrunner.c Sun Sep 15 13:03:59 2013 +0000
+++ b/sys/dev/ic/rrunner.c Sun Sep 15 13:43:20 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rrunner.c,v 1.75 2012/10/27 17:18:22 chs Exp $ */
+/* $NetBSD: rrunner.c,v 1.76 2013/09/15 13:43:20 martin Exp $ */
/*
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.75 2012/10/27 17:18:22 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.76 2013/09/15 13:43:20 martin Exp $");
#include "opt_inet.h"
@@ -1630,12 +1630,11 @@
sc->sc_flags &= ~ESH_FL_SNAP_RING_UP;
while (sc->sc_snap_recv.ec_consumer
!= sc->sc_snap_recv.ec_producer) {
- struct mbuf *m0;
u_int16_t offset = sc->sc_snap_recv.ec_consumer;
bus_dmamap_unload(sc->sc_dmat,
sc->sc_snap_recv.ec_dma[offset]);
- MFREE(sc->sc_snap_recv.ec_m[offset], m0);
+ m_free(sc->sc_snap_recv.ec_m[offset]);
sc->sc_snap_recv.ec_m[offset] = NULL;
sc->sc_snap_recv.ec_consumer =
NEXT_RECV(sc->sc_snap_recv.ec_consumer);
@@ -2474,14 +2473,14 @@
while (NEXT_RECV(recv->ec_producer) != recv->ec_consumer) {
int offset = recv->ec_producer;
- struct mbuf *m, *m0;
+ struct mbuf *m;
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (!m)
break;
MCLGET(m, M_DONTWAIT);
if ((m->m_flags & M_EXT) == 0) {
- MFREE(m, m0);
+ m_free(m);
break;
}
@@ -2492,7 +2491,7 @@
printf("%s: esh_fill_recv_ring: bus_dmamap_load "
"failed\toffset %x, error code %d\n",
device_xname(sc->sc_dev), offset, error);
- MFREE(m, m0);
+ m_free(m);
break;
}
@@ -3245,12 +3244,11 @@
while (sc->sc_snap_recv.ec_consumer
!= sc->sc_snap_recv.ec_producer) {
- struct mbuf *m0;
u_int16_t offset = sc->sc_snap_recv.ec_consumer;
bus_dmamap_unload(sc->sc_dmat,
sc->sc_snap_recv.ec_dma[offset]);
- MFREE(sc->sc_snap_recv.ec_m[offset], m0);
+ m_free(sc->sc_snap_recv.ec_m[offset]);
sc->sc_snap_recv.ec_m[offset] = NULL;
sc->sc_snap_recv.ec_consumer =
NEXT_RECV(sc->sc_snap_recv.ec_consumer);
Home |
Main Index |
Thread Index |
Old Index