Avoided unused variable warnings.

This commit is contained in:
Florian Pose 2012-01-09 17:42:12 +01:00
parent aabab6d2be
commit 061a052d17
4 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ static void e1000_power_down_phy_copper_82571(struct e1000_hw *hw);
static s32 e1000_init_phy_params_82571(struct e1000_hw *hw)
{
struct e1000_phy_info *phy = &hw->phy;
s32 ret_val;
s32 ret_val __attribute__ ((unused));
if (hw->phy.media_type != e1000_media_type_copper) {
phy->type = e1000_phy_none;
@ -853,7 +853,7 @@ static s32 e1000_set_d0_lplu_state_82571(struct e1000_hw *hw, bool active)
**/
static s32 e1000_reset_hw_82571(struct e1000_hw *hw)
{
u32 ctrl, extcnf_ctrl, ctrl_ext, icr;
u32 ctrl, extcnf_ctrl, ctrl_ext, icr __attribute__ ((unused));
s32 ret_val;
u16 i = 0;

View File

@ -784,7 +784,7 @@ static s32 e1000_get_link_up_info_80003es2lan(struct e1000_hw *hw, u16 *speed,
**/
static s32 e1000_reset_hw_80003es2lan(struct e1000_hw *hw)
{
u32 ctrl, icr;
u32 ctrl, icr __attribute__ ((unused));
s32 ret_val;
/*

View File

@ -2978,7 +2978,7 @@ static s32 e1000_reset_hw_ich8lan(struct e1000_hw *hw)
{
struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan;
u16 reg;
u32 ctrl, icr, kab;
u32 ctrl, icr __attribute__ ((unused)), kab;
s32 ret_val;
/*

View File

@ -2790,7 +2790,7 @@ static void e1000_setup_rctl(struct e1000_adapter *adapter)
/* Workaround Si errata on 82579 - configure jumbo frame flow */
if (hw->mac.type == e1000_pch2lan) {
s32 ret_val;
s32 ret_val __attribute__ ((unused));
if (adapter->netdev->mtu > ETH_DATA_LEN)
ret_val = e1000_lv_jumbo_workaround_ich8lan(hw, true);