summaryrefslogtreecommitdiffstats
path: root/src/net/80211/net80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/80211/net80211.c')
-rw-r--r--src/net/80211/net80211.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/80211/net80211.c b/src/net/80211/net80211.c
index 1b2ffd38..c46870c4 100644
--- a/src/net/80211/net80211.c
+++ b/src/net/80211/net80211.c
@@ -1521,8 +1521,7 @@ net80211_probe_finish_best ( struct net80211_probe_ctx *ctx )
DBGC ( ctx->dev, "802.11 %p probe: found nothing for '%s'\n",
ctx->dev, ctx->essid );
- if ( ! list_empty ( ctx->beacons ) )
- net80211_free_wlanlist ( ctx->beacons );
+ net80211_free_wlanlist ( ctx->beacons );
net80211_keep_mgmt ( ctx->dev, ctx->old_keep_mgmt );