diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-11-25 13:14:48 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-11-25 13:14:48 +0000 |
commit | 0a70633931ddb015bd0e7ad3b5e35439ff387229 (patch) | |
tree | fd0cb1462966809986a1ffea01ec371d42394edc /sys/dev/pci/if_vr.c | |
parent | 544f86f8f9b399ffc663711b1cb617e6a33e0ba6 (diff) |
Just some minor cleanup. OK deraadt@
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r-- | sys/dev/pci/if_vr.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 7b069440a5d..5d6516fcac7 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.103 2009/11/25 12:45:02 deraadt Exp $ */ +/* $OpenBSD: if_vr.c,v 1.104 2009/11/25 13:14:47 claudio Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1497,12 +1497,10 @@ vr_stop(struct vr_softc *sc) * Free data in the RX lists. */ for (i = 0; i < VR_RX_LIST_CNT; i++) { - if (sc->vr_cdata.vr_rx_chain[i].vr_mbuf != NULL) { m_freem(sc->vr_cdata.vr_rx_chain[i].vr_mbuf); sc->vr_cdata.vr_rx_chain[i].vr_mbuf = NULL; } - map = sc->vr_cdata.vr_rx_chain[i].vr_map; if (map != NULL) { if (map->dm_nsegs > 0) @@ -1518,8 +1516,6 @@ vr_stop(struct vr_softc *sc) * Free the TX list buffers. */ for (i = 0; i < VR_TX_LIST_CNT; i++) { - bus_dmamap_t map; - if (sc->vr_cdata.vr_tx_chain[i].vr_mbuf != NULL) { m_freem(sc->vr_cdata.vr_tx_chain[i].vr_mbuf); sc->vr_cdata.vr_tx_chain[i].vr_mbuf = NULL; @@ -1533,7 +1529,6 @@ vr_stop(struct vr_softc *sc) sc->vr_cdata.vr_tx_chain[i].vr_map = NULL; } } - bzero((char *)&sc->vr_ldata->vr_tx_list, sizeof(sc->vr_ldata->vr_tx_list)); } |