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:
Marcus Shawcroft 2016-12-20 10:25:40 +00:00 committed by Anas Nashif
commit af6095876c

View file

@ -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);