Browse Source

[802.11] Remove redundant NULL pointer check after dereference

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
9b581158b5
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      src/net/80211/net80211.c

+ 0
- 3
src/net/80211/net80211.c View File

@@ -1586,9 +1586,6 @@ struct list_head *net80211_probe_finish_all ( struct net80211_probe_ctx *ctx )
1586 1586
 {
1587 1587
 	struct list_head *beacons = ctx->beacons;
1588 1588
 
1589
-	if ( ! ctx )
1590
-		return NULL;
1591
-
1592 1589
 	net80211_keep_mgmt ( ctx->dev, ctx->old_keep_mgmt );
1593 1590
 
1594 1591
 	if ( ctx->probe )

Loading…
Cancel
Save