svn commit: r268067 - in head/sys/dev: e1000 ixgbe
Adrian Chadd
adrian at FreeBSD.org
Mon Jun 30 23:34:37 UTC 2014
Author: adrian
Date: Mon Jun 30 23:34:36 2014
New Revision: 268067
URL: http://svnweb.freebsd.org/changeset/base/268067
Log:
Initialise these variables so gcc doesn't complain.
Submitted by: luigi
Modified:
head/sys/dev/e1000/if_igb.c
head/sys/dev/ixgbe/ixgbe.c
Modified: head/sys/dev/e1000/if_igb.c
==============================================================================
--- head/sys/dev/e1000/if_igb.c Mon Jun 30 20:54:25 2014 (r268066)
+++ head/sys/dev/e1000/if_igb.c Mon Jun 30 23:34:36 2014 (r268067)
@@ -2458,7 +2458,7 @@ igb_allocate_msix(struct adapter *adapte
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);
Modified: head/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- head/sys/dev/ixgbe/ixgbe.c Mon Jun 30 20:54:25 2014 (r268066)
+++ head/sys/dev/ixgbe/ixgbe.c Mon Jun 30 23:34:36 2014 (r268067)
@@ -2364,7 +2364,7 @@ ixgbe_allocate_msix(struct adapter *adap
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
/*
More information about the svn-src-head
mailing list