staging: octeon-ethernet: delete cvm_oct_set_carrier()

Delete unused function cvm_oct_set_carrier().

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Aaro Koskinen 2015-03-28 21:46:29 +02:00 committed by Greg Kroah-Hartman
parent 203d776214
commit 528a5691ad

View File

@ -130,19 +130,6 @@ static void cvm_oct_note_carrier(struct octeon_ethernet *priv,
}
}
void cvm_oct_set_carrier(struct octeon_ethernet *priv,
cvmx_helper_link_info_t link_info)
{
cvm_oct_note_carrier(priv, link_info);
if (link_info.s.link_up) {
if (!netif_carrier_ok(priv->netdev))
netif_carrier_on(priv->netdev);
} else {
if (netif_carrier_ok(priv->netdev))
netif_carrier_off(priv->netdev);
}
}
void cvm_oct_adjust_link(struct net_device *dev)
{
struct octeon_ethernet *priv = netdev_priv(dev);