From 0a70633931ddb015bd0e7ad3b5e35439ff387229 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 25 Nov 2009 13:14:48 +0000 Subject: Just some minor cleanup. OK deraadt@ --- sys/dev/pci/if_vr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys') 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)); } -- cgit v1.2.3