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:
parent
24b49f4399
commit
f63855c657
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue