提交 b249513e 编写于 作者: B Ben Hutchings

sfc: Remove obsolete function efx_dev_name()

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
上级 94813b86
...@@ -791,15 +791,6 @@ static inline int efx_dev_registered(struct efx_nic *efx) ...@@ -791,15 +791,6 @@ static inline int efx_dev_registered(struct efx_nic *efx)
return efx->net_dev->reg_state == NETREG_REGISTERED; 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) static inline unsigned int efx_port_num(struct efx_nic *efx)
{ {
return efx->net_dev->dev_id; return efx->net_dev->dev_id;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册