net: if: Mark not used args as unused

If the function parameter is not used, mark it as unused to
avoid compiler warning.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2021-03-16 10:49:13 +02:00 committed by Jukka Rissanen
commit f63855c657
2 changed files with 9 additions and 0 deletions

View file

@ -627,6 +627,8 @@ static inline struct net_offload *net_if_offload(struct net_if *iface)
#if defined(CONFIG_NET_OFFLOAD)
return iface->if_dev->offload;
#else
ARG_UNUSED(iface);
return NULL;
#endif
}