From 338cc11b96d57ea1d52df4022409ecce9c8470fa Mon Sep 17 00:00:00 2001 From: Ryan Hsu Date: Thu, 7 Jun 2018 15:21:27 -0700 Subject: [PATCH] qcacld-3.0: remove the unnecessary stats reset operation In the case of invalid iface_ctx, the stats reset operation is not needed, so removed it. Change-Id: I48b4b42717451e1ccbfc9753147e65d35ff78df4 CRs-fixed: 2254683 --- components/ipa/core/src/wlan_ipa_stats.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/ipa/core/src/wlan_ipa_stats.c b/components/ipa/core/src/wlan_ipa_stats.c index 12f08f5df2ba..e636e72b37a1 100644 --- a/components/ipa/core/src/wlan_ipa_stats.c +++ b/components/ipa/core/src/wlan_ipa_stats.c @@ -868,8 +868,6 @@ void wlan_ipa_wdi_meter_notifier_cb(qdf_ipa_wdi_meter_evt_type_t evt, iface_ctx = wlan_ipa_get_iface(ipa_ctx, QDF_STA_MODE); if (!iface_ctx) { ipa_err("IPA uC share stats failed - no iface"); - QDF_IPA_GET_WDI_SAP_STATS_STATS_VALID(wdi_sap_stats) = - 0; return; }