- Remove two write-only local variables
- Remove unused element in the vtnet_rxq structure MFC after: 1 week
This commit is contained in:
parent
e86a414238
commit
add526c613
@ -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. */
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user