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
 {
1586
 {
1587
 	struct list_head *beacons = ctx->beacons;
1587
 	struct list_head *beacons = ctx->beacons;
1588
 
1588
 
1589
-	if ( ! ctx )
1590
-		return NULL;
1591
-
1592
 	net80211_keep_mgmt ( ctx->dev, ctx->old_keep_mgmt );
1589
 	net80211_keep_mgmt ( ctx->dev, ctx->old_keep_mgmt );
1593
 
1590
 
1594
 	if ( ctx->probe )
1591
 	if ( ctx->probe )

Loading…
Cancel
Save