aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-01-09 14:41:48 -0500
committerBen Hutchings <bhutchings@solarflare.com>2012-01-26 19:10:54 -0500
commitb249513e8ba3ca8bc2c87e78eb6e302d5d8abd6f (patch)
treee6ec97a988859e8ecf27eadcfcecb90a6881a4b0
parent94813b86bf1981338de0a6e2ab50be3b4366f3bd (diff)
sfc: Remove obsolete function efx_dev_name()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index a4cf8cb8180c..310c50f06458 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -791,15 +791,6 @@ static inline int efx_dev_registered(struct efx_nic *efx)
791 return efx->net_dev->reg_state == NETREG_REGISTERED; 791 return efx->net_dev->reg_state == NETREG_REGISTERED;
792} 792}
793 793
794/* Net device name, for inclusion in log messages if it has been registered.
795 * Use efx->name not efx->net_dev->name so that races with (un)registration
796 * are harmless.
797 */
798static inline const char *efx_dev_name(struct efx_nic *efx)
799{
800 return efx_dev_registered(efx) ? efx->name : "";
801}
802
803static inline unsigned int efx_port_num(struct efx_nic *efx) 794static inline unsigned int efx_port_num(struct efx_nic *efx)
804{ 795{
805 return efx->net_dev->dev_id; 796 return efx->net_dev->dev_id;