Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168936
b: refs/heads/master
c: 29afd69
h: refs/heads/master
v: v3
  • Loading branch information
Bruce Allan authored and David S. Miller committed Nov 20, 2009
1 parent 1b26940 commit cea39b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 842ec8b64ac34e9b245da31b4a5a49c3e744a714
refs/heads/master: 29afd690636dab36fe437c54b3a9d5e093bdcd9b
12 changes: 10 additions & 2 deletions trunk/drivers/net/e1000e/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,18 @@ static int e1000_set_pauseparam(struct net_device *netdev,

hw->fc.current_mode = hw->fc.requested_mode;

retval = ((hw->phy.media_type == e1000_media_type_fiber) ?
hw->mac.ops.setup_link(hw) : e1000e_force_mac_fc(hw));
if (hw->phy.media_type == e1000_media_type_fiber) {
retval = hw->mac.ops.setup_link(hw);
/* implicit goto out */
} else {
retval = e1000e_force_mac_fc(hw);
if (retval)
goto out;
e1000e_set_fc_watermarks(hw);
}
}

out:
clear_bit(__E1000_RESETTING, &adapter->state);
return retval;
}
Expand Down

0 comments on commit cea39b5

Please sign in to comment.