Преглед на файлове

[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
 {
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…
Отказ
Запис