Skip to content

Commit 2ef7c81

Browse files
ajayparidagmarull
authored andcommitted
[nrf fromtree] 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 <[email protected]> (cherry picked from commit 02f4e71)
1 parent 570c8c2 commit 2ef7c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/wifi/wifi_nm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct wifi_nm_instance *wifi_nm_get_instance(const char *name)
2727
struct wifi_nm_instance *wifi_nm_get_instance_iface(struct net_if *iface)
2828
{
2929
if (!iface || !net_if_is_wifi(iface)) {
30-
return false;
30+
return NULL;
3131
}
3232

3333
k_mutex_lock(&wifi_nm_lock, K_FOREVER);

0 commit comments

Comments
 (0)