Browse Source

qcacld-3.0: Remove local variables not used

With the introduction of code change in
I16a5429c00034fe58fb4c70a8dacda666ac54227,
function __wlan_hdd_cfg80211_suspend_wlan doesn't
need the local variable 'scan_info' any more, so
remove it.

Change-Id: I09070d90004f740b25b45b424902521e7bfb6f6b
CRs-Fixed: 2425697
wadesong 6 years ago
parent
commit
4e0852344d
1 changed files with 0 additions and 3 deletions
  1. 0 3
      core/hdd/src/wlan_hdd_power.c

+ 0 - 3
core/hdd/src/wlan_hdd_power.c

@@ -1684,7 +1684,6 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
 {
 	struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
 	struct hdd_adapter *adapter;
-	struct hdd_scan_info *scan_info;
 	mac_handle_t mac_handle;
 	int rc;
 
@@ -1750,8 +1749,6 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
 
 	/* Stop ongoing scan on each interface */
 	hdd_for_each_adapter(hdd_ctx, adapter) {
-		scan_info = &adapter->scan_info;
-
 		if (sme_neighbor_middle_of_roaming(mac_handle,
 		    adapter->vdev_id) ||
 		    hdd_is_roaming_in_progress(hdd_ctx)) {