aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/vsc8211.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-26 02:59:28 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 02:59:28 -0500
commitaf8eca5cbbc8f991ec14c8d7e3350bbe2ea49655 (patch)
tree1e8a4f5e2436c628297a2c5b36418186b6beee5a /drivers/net/cxgb3/vsc8211.c
parentb06715b7a3db551dcf4706f05e8d2285a66fe05f (diff)
drivers/net/cxgb3: comment out dead code
The function 'vsc8211_set_speed_duplex' is not used, so comment it out. For 'vsc8211_set_automdi' the function 'vsc8211_set_speed_duplex' is the only caller, so comment it out as well. Fix this (sparse) warning: drivers/net/cxgb3/vsc8211.c:269: warning: 'vsc8211_set_automdi' defined but not used drivers/net/cxgb3/vsc8211.c:295:5: warning: symbol 'vsc8211_set_speed_duplex' was not declared. Should it be static? Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3/vsc8211.c')
-rw-r--r--drivers/net/cxgb3/vsc8211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/vsc8211.c b/drivers/net/cxgb3/vsc8211.c
index 33f956bd6b59..d07130971b8f 100644
--- a/drivers/net/cxgb3/vsc8211.c
+++ b/drivers/net/cxgb3/vsc8211.c
@@ -262,6 +262,7 @@ static int vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok,
262 return 0; 262 return 0;
263} 263}
264 264
265#ifdef UNUSED
265/* 266/*
266 * Enable/disable auto MDI/MDI-X in forced link speed mode. 267 * Enable/disable auto MDI/MDI-X in forced link speed mode.
267 */ 268 */
@@ -301,6 +302,7 @@ int vsc8211_set_speed_duplex(struct cphy *phy, int speed, int duplex)
301 err = vsc8211_set_automdi(phy, 1); 302 err = vsc8211_set_automdi(phy, 1);
302 return err; 303 return err;
303} 304}
305#endif /* UNUSED */
304 306
305static int vsc8211_power_down(struct cphy *cphy, int enable) 307static int vsc8211_power_down(struct cphy *cphy, int enable)
306{ 308{