]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sfc: Remove obsolete function efx_dev_name()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 9 Jan 2012 19:41:48 +0000 (19:41 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 27 Jan 2012 00:10:54 +0000 (00:10 +0000)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/net_driver.h

index a4cf8cb8180c5a9039f8b5ebd6b7682c9122432c..310c50f06458a8cac8deb671ca135582bc9ee42e 100644 (file)
@@ -791,15 +791,6 @@ static inline int efx_dev_registered(struct efx_nic *efx)
        return efx->net_dev->reg_state == NETREG_REGISTERED;
 }
 
-/* Net device name, for inclusion in log messages if it has been registered.
- * Use efx->name not efx->net_dev->name so that races with (un)registration
- * are harmless.
- */
-static inline const char *efx_dev_name(struct efx_nic *efx)
-{
-       return efx_dev_registered(efx) ? efx->name : "";
-}
-
 static inline unsigned int efx_port_num(struct efx_nic *efx)
 {
        return efx->net_dev->dev_id;