From 8c0d2adf3f021ab79d1a2c27926a6308cd47ab25 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 30 Jun 2014 23:34:36 +0000 Subject: [PATCH] Initialise these variables so gcc doesn't complain. Submitted by: luigi --- sys/dev/e1000/if_igb.c | 2 +- sys/dev/ixgbe/ixgbe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c index b8d288d3e45..3027a141612 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 5f694cbe479..ec5c215d77b 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 /*