gem_start() assigned last_txs, but never used it otherwise, so
remove it.
This commit is contained in:
parent
4941977e05
commit
10769d1048
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: gem.c,v 1.63 2007/12/31 20:35:11 dyoung Exp $ */
|
/* $NetBSD: gem.c,v 1.64 2007/12/31 20:39:45 dyoung Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.63 2007/12/31 20:35:11 dyoung Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.64 2007/12/31 20:39:45 dyoung Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "bpfilter.h"
|
#include "bpfilter.h"
|
||||||
|
@ -1025,7 +1025,7 @@ gem_start(ifp)
|
||||||
{
|
{
|
||||||
struct gem_softc *sc = (struct gem_softc *)ifp->if_softc;
|
struct gem_softc *sc = (struct gem_softc *)ifp->if_softc;
|
||||||
struct mbuf *m0, *m;
|
struct mbuf *m0, *m;
|
||||||
struct gem_txsoft *txs, *last_txs;
|
struct gem_txsoft *txs;
|
||||||
bus_dmamap_t dmamap;
|
bus_dmamap_t dmamap;
|
||||||
int error, firsttx, nexttx = -1, lasttx = -1, ofree, seg;
|
int error, firsttx, nexttx = -1, lasttx = -1, ofree, seg;
|
||||||
uint64_t flags = 0;
|
uint64_t flags = 0;
|
||||||
|
@ -1261,8 +1261,6 @@ gem_start(ifp)
|
||||||
SIMPLEQ_REMOVE_HEAD(&sc->sc_txfreeq, txs_q);
|
SIMPLEQ_REMOVE_HEAD(&sc->sc_txfreeq, txs_q);
|
||||||
SIMPLEQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q);
|
SIMPLEQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q);
|
||||||
|
|
||||||
last_txs = txs;
|
|
||||||
|
|
||||||
#if NBPFILTER > 0
|
#if NBPFILTER > 0
|
||||||
/*
|
/*
|
||||||
* Pass the packet to any BPF listeners.
|
* Pass the packet to any BPF listeners.
|
||||||
|
|
Loading…
Reference in New Issue