vnic: Use __diagused for variables only used in KASSERT().

This commit is contained in:
John Baldwin 2022-04-13 16:08:23 -07:00
parent 4aec198420
commit 216536350a
2 changed files with 5 additions and 5 deletions

View File

@ -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++) {

View File

@ -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;