From: Greg Dietsche Date: Tue, 6 Sep 2011 22:33:51 +0000 (-0500) Subject: iwlegacy: 4965: remove vif null check in request_scan X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=730b4c2102902a0061bb01a3d3fa1b6461973849;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git iwlegacy: 4965: remove vif null check in request_scan remove null check on vif in il4965_request_scan Signed-off-by: Greg Dietsche Signed-off-by: Stanislaw Gruszka --- diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index 8d2f6162d6e..4aaef413556 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c @@ -850,8 +850,7 @@ il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif) lockdep_assert_held(&il->mutex); - if (vif) - ctx = il_rxon_ctx_from_vif(vif); + ctx = il_rxon_ctx_from_vif(vif); if (!il->scan_cmd) { il->scan_cmd =