net: Device driver_api is const, honour it.
Change-Id: I3fffe80e1be884e2b58387dc7fccf2def9c5e139 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
78a1256646
commit
af6095876c
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ static sys_slist_t link_callbacks;
|
|||
|
||||
static void net_if_tx_thread(struct net_if *iface)
|
||||
{
|
||||
struct net_if_api *api = (struct net_if_api *)iface->dev->driver_api;
|
||||
const struct net_if_api *api = iface->dev->driver_api;
|
||||
|
||||
NET_ASSERT(api && api->init && api->send);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue