WNM: Use NULL instead of 0 as the pointer return value
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Jun 2016 10:11:01 +0000 (13:11 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 Jun 2016 10:11:01 +0000 (13:11 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wnm_sta.c

index 520b009..7674825 100644 (file)
@@ -508,7 +508,7 @@ compare_scan_neighbor_results(struct wpa_supplicant *wpa_s, os_time_t age_secs)
        struct wpa_bss *target;
 
        if (!bss)
-               return 0;
+               return NULL;
 
        wpa_printf(MSG_DEBUG, "WNM: Current BSS " MACSTR " RSSI %d",
                   MAC2STR(wpa_s->bssid), bss->level);