aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/lib.c
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2010-12-11 00:53:47 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2010-12-25 00:31:49 -0500
commitb1cdfead0e532d7614b5d5b97044df94cc8945ae (patch)
tree921241c8bac9f03705965a82daf3256cc8033d8d /drivers/net/e1000e/lib.c
parent6480641eb741cabbba8e196d4f17db7fb80d101c (diff)
e1000e: checkpatch warnings - braces
WARNING: braces {} are not necessary for any arm of this statement WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Emil Tantilov <emil.s.tantilov@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/e1000e/lib.c')
-rw-r--r--drivers/net/e1000e/lib.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/e1000e/lib.c b/drivers/net/e1000e/lib.c
index 8377523c054a..7e55170a601e 100644
--- a/drivers/net/e1000e/lib.c
+++ b/drivers/net/e1000e/lib.c
@@ -493,9 +493,8 @@ s32 e1000e_check_for_copper_link(struct e1000_hw *hw)
493 * different link partner. 493 * different link partner.
494 */ 494 */
495 ret_val = e1000e_config_fc_after_link_up(hw); 495 ret_val = e1000e_config_fc_after_link_up(hw);
496 if (ret_val) { 496 if (ret_val)
497 e_dbg("Error configuring flow control\n"); 497 e_dbg("Error configuring flow control\n");
498 }
499 498
500 return ret_val; 499 return ret_val;
501} 500}
@@ -1496,9 +1495,8 @@ s32 e1000e_setup_led_generic(struct e1000_hw *hw)
1496{ 1495{
1497 u32 ledctl; 1496 u32 ledctl;
1498 1497
1499 if (hw->mac.ops.setup_led != e1000e_setup_led_generic) { 1498 if (hw->mac.ops.setup_led != e1000e_setup_led_generic)
1500 return -E1000_ERR_CONFIG; 1499 return -E1000_ERR_CONFIG;
1501 }
1502 1500
1503 if (hw->phy.media_type == e1000_media_type_fiber) { 1501 if (hw->phy.media_type == e1000_media_type_fiber) {
1504 ledctl = er32(LEDCTL); 1502 ledctl = er32(LEDCTL);