Date: Mon, 30 Jun 2014 23:34:37 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268067 - in head/sys/dev: e1000 ixgbe Message-ID: <201406302334.s5UNYb5N092914@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406302334.s5UNYb5N092914>