]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[802.11] Remove redundant NULL pointer check after dereference
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Mar 2017 12:01:08 +0000 (14:01 +0200)
committerMichael Brown <mcb30@ipxe.org>
Tue, 21 Mar 2017 12:01:08 +0000 (14:01 +0200)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/80211/net80211.c

index 62912741f901dbb4cffb86aeb0f00e0e4a4585df..4820001028138700999fb6d55bdf2c097afdbfe9 100644 (file)
@@ -1586,9 +1586,6 @@ struct list_head *net80211_probe_finish_all ( struct net80211_probe_ctx *ctx )
 {
        struct list_head *beacons = ctx->beacons;
 
-       if ( ! ctx )
-               return NULL;
-
        net80211_keep_mgmt ( ctx->dev, ctx->old_keep_mgmt );
 
        if ( ctx->probe )