summaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_common.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-03-02 05:32:39 +0100
committerDavid S. Miller <davem@davemloft.net>2009-03-02 05:32:39 +0100
commitfc1f209514691af9167e462880e858efc8b22d83 (patch)
tree869a1f11053de59445f135fca3f639d5fa99fff6 /drivers/net/ixgbe/ixgbe_common.c
parenttyphoon: Need non-vmalloc memory to DMA firmware to the card. (diff)
downloadlinux-fc1f209514691af9167e462880e858efc8b22d83.tar.xz
linux-fc1f209514691af9167e462880e858efc8b22d83.zip
ixgbe: Fix some compiler warnings.
'pap' is never used in ixgbe_dcb_hw_config_82599() and 'eec' in ixgbe_acquire_eeptom() is only used when status == 0 but GCC has some trouble seeing that. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_common.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.c b/drivers/net/ixgbe/ixgbe_common.c
index 26ee8a04646e..245db0e712e7 100644
--- a/drivers/net/ixgbe/ixgbe_common.c
+++ b/drivers/net/ixgbe/ixgbe_common.c
@@ -661,7 +661,7 @@ static s32 ixgbe_poll_eeprom_eerd_done(struct ixgbe_hw *hw)
static s32 ixgbe_acquire_eeprom(struct ixgbe_hw *hw)
{
s32 status = 0;
- u32 eec;
+ u32 eec = 0;
u32 i;
if (ixgbe_acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) != 0)