Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290071
b: refs/heads/master
c: 668018d
h: refs/heads/master
i:
  290069: c21613f
  290067: 5bdc0ad
  290063: 834aea6
v: v3
  • Loading branch information
Bruce Allan authored and Jeff Kirsher committed Feb 10, 2012
1 parent faf75f7 commit 4b68522
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 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: fe1e980f24697edb7d4e17cd74bbeae4a0388525
refs/heads/master: 668018d74762741c3fe5a54f0eea1bd65dcabd7e
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/intel/e1000e/82571.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ static void e1000_power_down_phy_copper_82571(struct e1000_hw *hw)
struct e1000_phy_info *phy = &hw->phy;
struct e1000_mac_info *mac = &hw->mac;

if (!(phy->ops.check_reset_block))
if (!phy->ops.check_reset_block)
return;

/* If the management interface is not enabled, then power down */
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/ethernet/intel/e1000e/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ static int e1000_setup_desc_rings(struct e1000_adapter *adapter)
tx_ring->buffer_info = kcalloc(tx_ring->count,
sizeof(struct e1000_buffer),
GFP_KERNEL);
if (!(tx_ring->buffer_info)) {
if (!tx_ring->buffer_info) {
ret_val = 1;
goto err_nomem;
}
Expand Down Expand Up @@ -1150,7 +1150,7 @@ static int e1000_setup_desc_rings(struct e1000_adapter *adapter)
rx_ring->buffer_info = kcalloc(rx_ring->count,
sizeof(struct e1000_buffer),
GFP_KERNEL);
if (!(rx_ring->buffer_info)) {
if (!rx_ring->buffer_info) {
ret_val = 5;
goto err_nomem;
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethernet/intel/e1000e/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ s32 e1000e_check_for_fiber_link(struct e1000_hw *hw)
* was just plugged in. The autoneg_failed flag does this.
*/
/* (ctrl & E1000_CTRL_SWDPIN1) == 1 == have signal */
if ((ctrl & E1000_CTRL_SWDPIN1) && (!(status & E1000_STATUS_LU)) &&
(!(rxcw & E1000_RXCW_C))) {
if ((ctrl & E1000_CTRL_SWDPIN1) && !(status & E1000_STATUS_LU) &&
!(rxcw & E1000_RXCW_C)) {
if (mac->autoneg_failed == 0) {
mac->autoneg_failed = 1;
return 0;
Expand Down Expand Up @@ -577,7 +577,7 @@ s32 e1000e_check_for_serdes_link(struct e1000_hw *hw)
* time to complete.
*/
/* (ctrl & E1000_CTRL_SWDPIN1) == 1 == have signal */
if ((!(status & E1000_STATUS_LU)) && (!(rxcw & E1000_RXCW_C))) {
if (!(status & E1000_STATUS_LU) && !(rxcw & E1000_RXCW_C)) {
if (mac->autoneg_failed == 0) {
mac->autoneg_failed = 1;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/intel/e1000e/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static s32 e1000_mng_enable_host_if(struct e1000_hw *hw)
u32 hicr;
u8 i;

if (!(hw->mac.arc_subsystem_valid)) {
if (!hw->mac.arc_subsystem_valid) {
e_dbg("ARC subsystem not valid.\n");
return -E1000_ERR_HOST_INTERFACE_COMMAND;
}
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/net/ethernet/intel/e1000e/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ s32 e1000e_get_phy_id(struct e1000_hw *hw)
u16 phy_id;
u16 retry_count = 0;

if (!(phy->ops.read_reg))
if (!phy->ops.read_reg)
goto out;

while (retry_count < 2) {
Expand Down Expand Up @@ -382,7 +382,7 @@ static s32 __e1000e_read_phy_reg_igp(struct e1000_hw *hw, u32 offset, u16 *data,
s32 ret_val = 0;

if (!locked) {
if (!(hw->phy.ops.acquire))
if (!hw->phy.ops.acquire)
goto out;

ret_val = hw->phy.ops.acquire(hw);
Expand Down Expand Up @@ -453,7 +453,7 @@ static s32 __e1000e_write_phy_reg_igp(struct e1000_hw *hw, u32 offset, u16 data,
s32 ret_val = 0;

if (!locked) {
if (!(hw->phy.ops.acquire))
if (!hw->phy.ops.acquire)
goto out;

ret_val = hw->phy.ops.acquire(hw);
Expand Down Expand Up @@ -526,7 +526,7 @@ static s32 __e1000_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data,
s32 ret_val = 0;

if (!locked) {
if (!(hw->phy.ops.acquire))
if (!hw->phy.ops.acquire)
goto out;

ret_val = hw->phy.ops.acquire(hw);
Expand Down Expand Up @@ -599,7 +599,7 @@ static s32 __e1000_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data,
s32 ret_val = 0;

if (!locked) {
if (!(hw->phy.ops.acquire))
if (!hw->phy.ops.acquire)
goto out;

ret_val = hw->phy.ops.acquire(hw);
Expand Down

0 comments on commit 4b68522

Please sign in to comment.