]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Fix compiler warning
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 25 Oct 2010 10:38:06 +0000 (13:38 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 Oct 2010 10:38:06 +0000 (13:38 +0300)
Commit 83e843e830112a810ef6a1f6c08dbe8200e47f0f copied a workaround
without updating the return value to match with the void function.

src/ap/drv_callbacks.c

index 7b6e92768f77a300d2d7e10e18b87c19026dd437..7c5b79418cc1cc06b7145ebd2d4f44b187b9a7a7 100644 (file)
@@ -205,7 +205,7 @@ void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr)
                 */
                wpa_printf(MSG_DEBUG, "hostapd_notif_disassoc: Skip event "
                           "with no address");
-               return -1;
+               return;
        }
 
        hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,