瀏覽代碼

[802.11] Remove redundant NULL pointer check after dereference

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 年之前
父節點
當前提交
9b581158b5
共有 1 個檔案被更改,包括 0 行新增3 行删除
  1. 0
    3
      src/net/80211/net80211.c

+ 0
- 3
src/net/80211/net80211.c 查看文件

@@ -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…
取消
儲存