eth: mcux: Do not call eth_name() when dev->name can be used
Spare a function call. Signed-off-by: Armand Ciejak <armand@riedonetworks.com>
This commit is contained in:
parent
55b88eef22
commit
fde702359e
1 changed files with 2 additions and 2 deletions
|
@ -1132,7 +1132,7 @@ static int eth_init(const struct device *dev)
|
||||||
eth_mcux_init(dev);
|
eth_mcux_init(dev);
|
||||||
|
|
||||||
LOG_DBG("%s MAC %02x:%02x:%02x:%02x:%02x:%02x",
|
LOG_DBG("%s MAC %02x:%02x:%02x:%02x:%02x:%02x",
|
||||||
eth_name(context->base),
|
dev->name,
|
||||||
context->mac_addr[0], context->mac_addr[1],
|
context->mac_addr[0], context->mac_addr[1],
|
||||||
context->mac_addr[2], context->mac_addr[3],
|
context->mac_addr[2], context->mac_addr[3],
|
||||||
context->mac_addr[4], context->mac_addr[5]);
|
context->mac_addr[4], context->mac_addr[5]);
|
||||||
|
@ -1220,7 +1220,7 @@ static int eth_mcux_set_config(const struct device *dev,
|
||||||
sizeof(context->mac_addr),
|
sizeof(context->mac_addr),
|
||||||
NET_LINK_ETHERNET);
|
NET_LINK_ETHERNET);
|
||||||
LOG_DBG("%s MAC set to %02x:%02x:%02x:%02x:%02x:%02x",
|
LOG_DBG("%s MAC set to %02x:%02x:%02x:%02x:%02x:%02x",
|
||||||
eth_name(context->base),
|
dev->name,
|
||||||
context->mac_addr[0], context->mac_addr[1],
|
context->mac_addr[0], context->mac_addr[1],
|
||||||
context->mac_addr[2], context->mac_addr[3],
|
context->mac_addr[2], context->mac_addr[3],
|
||||||
context->mac_addr[4], context->mac_addr[5]);
|
context->mac_addr[4], context->mac_addr[5]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue