]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ixgbe: Fix some compiler warnings.
authorDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 04:32:39 +0000 (20:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 04:32:39 +0000 (20:32 -0800)
'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>
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_dcb_82599.c

index 26ee8a04646e71b4e1e57e61a1651d22f5beb727..245db0e712e7e91af2c59fe6e03d032891826408 100644 (file)
@@ -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)
index 1467d56435a02ffb023b0cde0fab25f7a61de128..adcbac422634206e1a340109f90d31e37e3d62cb 100644 (file)
@@ -457,8 +457,6 @@ s32 ixgbe_dcb_config_82599(struct ixgbe_hw *hw)
 s32 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw,
                               struct ixgbe_dcb_config *dcb_config)
 {
-       u32  pap = 0;
-
        ixgbe_dcb_config_packet_buffers_82599(hw, dcb_config);
        ixgbe_dcb_config_82599(hw);
        ixgbe_dcb_config_rx_arbiter_82599(hw, dcb_config);