From 4e0852344d1a8eb5d64b4af2f323597e801527c8 Mon Sep 17 00:00:00 2001 From: wadesong Date: Thu, 28 Mar 2019 21:06:10 +0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_power.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 996e66a4e064..a814303e0fc6 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/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)) {