net: l2: wifi: Fix for wrong return type
The function should return NULL instead of false in case of failure. Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
This commit is contained in:
parent
b93002655e
commit
02f4e71633
|
@ -27,7 +27,7 @@ struct wifi_nm_instance *wifi_nm_get_instance(const char *name)
|
|||
struct wifi_nm_instance *wifi_nm_get_instance_iface(struct net_if *iface)
|
||||
{
|
||||
if (!iface || !net_if_is_wifi(iface)) {
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
k_mutex_lock(&wifi_nm_lock, K_FOREVER);
|
||||
|
|
Loading…
Reference in a new issue