From: Michael Brown Date: Tue, 21 Mar 2017 12:01:08 +0000 (+0200) Subject: [802.11] Remove redundant NULL pointer check after dereference X-Git-Tag: v1.20.1~282 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b581158b5f1aaddd70eec5c303a2ad94a244f40;p=thirdparty%2Fipxe.git [802.11] Remove redundant NULL pointer check after dereference Signed-off-by: Michael Brown --- diff --git a/src/net/80211/net80211.c b/src/net/80211/net80211.c index 62912741f..482000102 100644 --- a/src/net/80211/net80211.c +++ b/src/net/80211/net80211.c @@ -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 )