diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c index b8d288d3e450..3027a1416124 100644 --- a/sys/dev/e1000/if_igb.c +++ b/sys/dev/e1000/if_igb.c @@ -2458,7 +2458,7 @@ igb_allocate_msix(struct adapter *adapter) device_t dev = adapter->dev; struct igb_queue *que = adapter->queues; int error, rid, vector = 0; - int cpu_id; + int cpu_id = 0; /* Be sure to start with all interrupts disabled */ E1000_WRITE_REG(&adapter->hw, E1000_IMC, ~0); diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c index 5f694cbe479c..ec5c215d77b1 100644 --- a/sys/dev/ixgbe/ixgbe.c +++ b/sys/dev/ixgbe/ixgbe.c @@ -2364,7 +2364,7 @@ ixgbe_allocate_msix(struct adapter *adapter) struct ix_queue *que = adapter->queues; struct tx_ring *txr = adapter->tx_rings; int error, rid, vector = 0; - int cpu_id; + int cpu_id = 0; #ifdef RSS /*