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:
Ajay Parida 2024-04-22 12:33:40 +05:30 committed by Carles Cufí
parent b93002655e
commit 02f4e71633

View file

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