diff --git a/sys/dev/vnic/nicvf_main.c b/sys/dev/vnic/nicvf_main.c index 1dc49ee855a9..0794c7d53113 100644 --- a/sys/dev/vnic/nicvf_main.c +++ b/sys/dev/vnic/nicvf_main.c @@ -1251,7 +1251,7 @@ nicvf_release_all_interrupts(struct nicvf *nic) { struct resource *res; int irq; - int err; + int err __diagused; /* Free registered interrupts */ for (irq = 0; irq < nic->num_vec; irq++) { diff --git a/sys/dev/vnic/nicvf_queues.c b/sys/dev/vnic/nicvf_queues.c index bb3eacb75fad..6cb939fdcc25 100644 --- a/sys/dev/vnic/nicvf_queues.c +++ b/sys/dev/vnic/nicvf_queues.c @@ -161,7 +161,7 @@ static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, int q_len, int desc_size, int align_bytes) { - int err, err_dmat; + int err, err_dmat __diagused; /* Create DMA tag first */ err = bus_dma_tag_create( @@ -231,7 +231,7 @@ dmamem_fail: static void nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) { - int err; + int err __diagused; if ((dmem == NULL) || (dmem->base == NULL)) return; @@ -438,7 +438,7 @@ nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) struct rbuf_info *rinfo; bus_addr_t buf_addr; int head, tail, idx; - int err; + int err __diagused; qs = nic->qs; @@ -1142,7 +1142,7 @@ nicvf_free_snd_queue(struct nicvf *nic, struct snd_queue *sq) { struct queue_set *qs = nic->qs; size_t i; - int err; + int err __diagused; if (sq == NULL) return;