提交 cbda5013 编写于 作者: F Fabian Frederick 提交者: David S. Miller

atl1c: remove unnecessary break after return

Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9fb1d03a
...@@ -639,7 +639,6 @@ int atl1c_phy_init(struct atl1c_hw *hw) ...@@ -639,7 +639,6 @@ int atl1c_phy_init(struct atl1c_hw *hw)
dev_err(&pdev->dev, "Wrong Media type %d\n", dev_err(&pdev->dev, "Wrong Media type %d\n",
hw->media_type); hw->media_type);
return -1; return -1;
break;
} }
ret_val = atl1c_write_phy_reg(hw, MII_BMCR, mii_bmcr_data); ret_val = atl1c_write_phy_reg(hw, MII_BMCR, mii_bmcr_data);
...@@ -682,7 +681,6 @@ int atl1c_get_speed_and_duplex(struct atl1c_hw *hw, u16 *speed, u16 *duplex) ...@@ -682,7 +681,6 @@ int atl1c_get_speed_and_duplex(struct atl1c_hw *hw, u16 *speed, u16 *duplex)
break; break;
default: default:
return -1; return -1;
break;
} }
if (phy_data & GIGA_PSSR_DPLX) if (phy_data & GIGA_PSSR_DPLX)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册