From 804fc8c859319c2b108d3291b3ed7d465739b6e1 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Thu, 3 Sep 2015 06:53:17 +0000 Subject: [PATCH] Lower the compiler warning: unused-but-set-variable. Approved by: bapt (mentor) Differential Revision: D3556 --- sys/dev/virtio/network/if_vtnet.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c index 4908fe000093..d9874af9a36a 100644 --- a/sys/dev/virtio/network/if_vtnet.c +++ b/sys/dev/virtio/network/if_vtnet.c @@ -1642,14 +1642,12 @@ static int vtnet_rxq_merged_eof(struct vtnet_rxq *rxq, struct mbuf *m_head, int nbufs) { struct vtnet_softc *sc; - struct ifnet *ifp; struct virtqueue *vq; struct mbuf *m, *m_tail; int len; sc = rxq->vtnrx_sc; vq = rxq->vtnrx_vq; - ifp = sc->vtnet_ifp; m_tail = m_head; while (--nbufs > 0) { @@ -3645,10 +3643,8 @@ vtnet_set_rx_process_limit(struct vtnet_softc *sc) static void vtnet_set_tx_intr_threshold(struct vtnet_softc *sc) { - device_t dev; int size, thresh; - dev = sc->vtnet_dev; size = virtqueue_size(sc->vtnet_txqs[0].vtntx_vq); /*