net/iface: Reduce ifdef usage on various options
Offload, DAD, RS and IPv4 autoconf. Fixes #8728 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
cf6c5428e1
commit
6a513e4394
3 changed files with 62 additions and 51 deletions
|
@ -650,7 +650,10 @@ static inline struct net_if_config *net_if_get_config(struct net_if *iface)
|
|||
#if defined(CONFIG_NET_IPV6_DAD)
|
||||
void net_if_start_dad(struct net_if *iface);
|
||||
#else
|
||||
#define net_if_start_dad(iface)
|
||||
static inline void net_if_start_dad(struct net_if *iface)
|
||||
{
|
||||
ARG_UNUSED(iface);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue