- Remove two write-only local variables

- Remove unused element in the vtnet_rxq structure

MFC after:	1 week
This commit is contained in:
Bryan Venteicher 2014-06-16 04:12:33 +00:00
parent e86a414238
commit add526c613
2 changed files with 0 additions and 5 deletions

View File

@ -2113,13 +2113,11 @@ fail:
static int
vtnet_txq_encap(struct vtnet_txq *txq, struct mbuf **m_head)
{
struct vtnet_softc *sc;
struct vtnet_tx_header *txhdr;
struct virtio_net_hdr *hdr;
struct mbuf *m;
int error;
sc = txq->vtntx_sc;
m = *m_head;
M_ASSERTPKTHDR(m);
@ -2946,11 +2944,9 @@ vtnet_set_active_vq_pairs(struct vtnet_softc *sc)
static int
vtnet_reinit(struct vtnet_softc *sc)
{
device_t dev;
struct ifnet *ifp;
int error;
dev = sc->vtnet_dev;
ifp = sc->vtnet_ifp;
/* Use the current MAC address. */

View File

@ -74,7 +74,6 @@ struct vtnet_rxq {
struct virtqueue *vtnrx_vq;
struct sglist *vtnrx_sg;
int vtnrx_id;
int vtnrx_process_limit;
struct vtnet_rxq_stats vtnrx_stats;
struct taskqueue *vtnrx_tq;
struct task vtnrx_intrtask;