diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-07-08 18:52:13 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-07-11 01:20:29 -0400 |
commit | 03f83041d836022a17258c2731f6221f248bedcb (patch) | |
tree | ff1e1aba41622705023e879c920258d3fa6811ad /drivers/net/ixgb/ixgb_hw.c | |
parent | 7490d71a9245fd59e6cd5732cba4d6b744db581a (diff) |
ixgb: format all if( to be if (
this patch is trivial but because I want to have everything be nice and
tidy I'm updating it.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgb/ixgb_hw.c')
-rw-r--r-- | drivers/net/ixgb/ixgb_hw.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/ixgb/ixgb_hw.c b/drivers/net/ixgb/ixgb_hw.c index 04d2003e24e1..d023fb59bf15 100644 --- a/drivers/net/ixgb/ixgb_hw.c +++ b/drivers/net/ixgb/ixgb_hw.c | |||
@@ -125,7 +125,7 @@ ixgb_adapter_stop(struct ixgb_hw *hw) | |||
125 | /* If we are stopped or resetting exit gracefully and wait to be | 125 | /* If we are stopped or resetting exit gracefully and wait to be |
126 | * started again before accessing the hardware. | 126 | * started again before accessing the hardware. |
127 | */ | 127 | */ |
128 | if(hw->adapter_stopped) { | 128 | if (hw->adapter_stopped) { |
129 | DEBUGOUT("Exiting because the adapter is already stopped!!!\n"); | 129 | DEBUGOUT("Exiting because the adapter is already stopped!!!\n"); |
130 | return false; | 130 | return false; |
131 | } | 131 | } |
@@ -482,7 +482,7 @@ ixgb_mc_addr_list_update(struct ixgb_hw *hw, | |||
482 | /* Place this multicast address in the RAR if there is room, * | 482 | /* Place this multicast address in the RAR if there is room, * |
483 | * else put it in the MTA | 483 | * else put it in the MTA |
484 | */ | 484 | */ |
485 | if(rar_used_count < IXGB_RAR_ENTRIES) { | 485 | if (rar_used_count < IXGB_RAR_ENTRIES) { |
486 | ixgb_rar_set(hw, | 486 | ixgb_rar_set(hw, |
487 | mc_addr_list + | 487 | mc_addr_list + |
488 | (i * (IXGB_ETH_LENGTH_OF_ADDRESS + pad)), | 488 | (i * (IXGB_ETH_LENGTH_OF_ADDRESS + pad)), |
@@ -719,9 +719,8 @@ ixgb_setup_fc(struct ixgb_hw *hw) | |||
719 | /* Write the new settings */ | 719 | /* Write the new settings */ |
720 | IXGB_WRITE_REG(hw, CTRL0, ctrl_reg); | 720 | IXGB_WRITE_REG(hw, CTRL0, ctrl_reg); |
721 | 721 | ||
722 | if (pap_reg != 0) { | 722 | if (pap_reg != 0) |
723 | IXGB_WRITE_REG(hw, PAP, pap_reg); | 723 | IXGB_WRITE_REG(hw, PAP, pap_reg); |
724 | } | ||
725 | 724 | ||
726 | /* Set the flow control receive threshold registers. Normally, | 725 | /* Set the flow control receive threshold registers. Normally, |
727 | * these registers will be set to a default threshold that may be | 726 | * these registers will be set to a default threshold that may be |
@@ -729,14 +728,14 @@ ixgb_setup_fc(struct ixgb_hw *hw) | |||
729 | * ability to transmit pause frames in not enabled, then these | 728 | * ability to transmit pause frames in not enabled, then these |
730 | * registers will be set to 0. | 729 | * registers will be set to 0. |
731 | */ | 730 | */ |
732 | if(!(hw->fc.type & ixgb_fc_tx_pause)) { | 731 | if (!(hw->fc.type & ixgb_fc_tx_pause)) { |
733 | IXGB_WRITE_REG(hw, FCRTL, 0); | 732 | IXGB_WRITE_REG(hw, FCRTL, 0); |
734 | IXGB_WRITE_REG(hw, FCRTH, 0); | 733 | IXGB_WRITE_REG(hw, FCRTH, 0); |
735 | } else { | 734 | } else { |
736 | /* We need to set up the Receive Threshold high and low water | 735 | /* We need to set up the Receive Threshold high and low water |
737 | * marks as well as (optionally) enabling the transmission of XON | 736 | * marks as well as (optionally) enabling the transmission of XON |
738 | * frames. */ | 737 | * frames. */ |
739 | if(hw->fc.send_xon) { | 738 | if (hw->fc.send_xon) { |
740 | IXGB_WRITE_REG(hw, FCRTL, | 739 | IXGB_WRITE_REG(hw, FCRTL, |
741 | (hw->fc.low_water | IXGB_FCRTL_XONE)); | 740 | (hw->fc.low_water | IXGB_FCRTL_XONE)); |
742 | } else { | 741 | } else { |
@@ -1007,7 +1006,7 @@ ixgb_clear_hw_cntrs(struct ixgb_hw *hw) | |||
1007 | DEBUGFUNC("ixgb_clear_hw_cntrs"); | 1006 | DEBUGFUNC("ixgb_clear_hw_cntrs"); |
1008 | 1007 | ||
1009 | /* if we are stopped or resetting exit gracefully */ | 1008 | /* if we are stopped or resetting exit gracefully */ |
1010 | if(hw->adapter_stopped) { | 1009 | if (hw->adapter_stopped) { |
1011 | DEBUGOUT("Exiting because the adapter is stopped!!!\n"); | 1010 | DEBUGOUT("Exiting because the adapter is stopped!!!\n"); |
1012 | return; | 1011 | return; |
1013 | } | 1012 | } |