wlan: Fix static source analysis issue during scan callback
This change fixes the static source analysis error in scan
done callback. Since the adapter is derived from dev, it
cannot be NULL. So, this check is removed.
Change-Id: I2b16b282b4cedd037df87a8e0e20e861d6569917
CRs-Fixed: 805455
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 85db0c5..39cbac9 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -10054,11 +10054,6 @@
ENTER();
- if (!pAdapter) {
- hddLog(VOS_TRACE_LEVEL_ERROR, FL("HDD adpater is NULL"));
- goto allow_suspend;
- }
-
pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
if (0 != wlan_hdd_validate_context(pHddCtx)) {
hddLog(VOS_TRACE_LEVEL_ERROR, FL("Invalid HDD context"));