ixgbe: remove unnecessary break after goto
authorFabian Frederick <fabf@skynet.be>
Sat, 12 Jul 2014 18:09:41 +0000 (20:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jul 2014 06:45:24 +0000 (23:45 -0700)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

index 15609331ec170ddc6bb9e62c4227107fc6b50cad..206171f732fbc9375e68b134b1e765176b4db927 100644 (file)
@@ -430,7 +430,6 @@ static s32 ixgbe_fc_enable_82598(struct ixgbe_hw *hw)
                hw_dbg(hw, "Flow control param set incorrectly\n");
                ret_val = IXGBE_ERR_CONFIG;
                goto out;
-               break;
        }
 
        /* Set 802.3x based flow control settings. */
index bc7c924240a52490d50531060783e0f13bc97f20..0373a5b9219fdf5011c3051db2c0ed05bbbf15e4 100644 (file)
@@ -432,7 +432,6 @@ static s32 ixgbe_get_link_capabilities_82599(struct ixgbe_hw *hw,
        default:
                status = IXGBE_ERR_LINK_SETUP;
                goto out;
-               break;
        }
 
        if (hw->phy.multispeed_fiber) {
@@ -2035,7 +2034,6 @@ static u32 ixgbe_get_supported_physical_layer_82599(struct ixgbe_hw *hw)
                else if (pma_pmd_10g_parallel == IXGBE_AUTOC_10G_XAUI)
                        physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_XAUI;
                goto out;
-               break;
        case IXGBE_AUTOC_LMS_10G_SERIAL:
                if (pma_pmd_10g_serial == IXGBE_AUTOC2_10G_KR) {
                        physical_layer = IXGBE_PHYSICAL_LAYER_10GBASE_KR;
@@ -2052,10 +2050,8 @@ static u32 ixgbe_get_supported_physical_layer_82599(struct ixgbe_hw *hw)
                if (autoc & IXGBE_AUTOC_KR_SUPP)
                        physical_layer |= IXGBE_PHYSICAL_LAYER_10GBASE_KR;
                goto out;
-               break;
        default:
                goto out;
-               break;
        }
 
 sfp_check:
index 4e5385a2a4658c8c5f0dc9ea4ee279d08693351d..3f318c52e0531ab2e5b18a8b674b7e36bba6982a 100644 (file)
@@ -216,7 +216,6 @@ static s32 ixgbe_setup_fc(struct ixgbe_hw *hw)
                hw_dbg(hw, "Flow control param set incorrectly\n");
                ret_val = IXGBE_ERR_CONFIG;
                goto out;
-               break;
        }
 
        if (hw->mac.type != ixgbe_mac_X540) {
@@ -2179,7 +2178,6 @@ s32 ixgbe_fc_enable_generic(struct ixgbe_hw *hw)
                hw_dbg(hw, "Flow control param set incorrectly\n");
                ret_val = IXGBE_ERR_CONFIG;
                goto out;
-               break;
        }
 
        /* Set 802.3x based flow control settings. */
This page took 0.030675 seconds and 5 git commands to generate.