diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 96fc15e14b..a84ca63228 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -22052,8 +22052,7 @@ static int __wlan_hdd_cfg80211_flush_pmksa(struct wiphy *wiphy, status = wlan_hdd_flush_pmksa_cache(adapter); if (status == QDF_STATUS_E_NOSUPPORT) { errno = -EOPNOTSUPP; - } - else if (QDF_IS_STATUS_ERROR(status)) { + } else if (QDF_IS_STATUS_ERROR(status)) { hdd_err("Cannot flush PMKIDCache"); errno = -EINVAL; } diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index d7f8d1d52a..60e6e24da8 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -9382,18 +9382,6 @@ static inline void hdd_pm_qos_update_cpu_mask(cpumask_t *mask, } } -#ifdef FEATURE_RUNTIME_PM -static inline bool hdd_is_dynamic_runtime_pm_enabled(struct hdd_context *hdd_ctx) -{ - return hdd_ctx->config->runtime_pm == hdd_runtime_pm_dynamic; -} -#else -static inline bool hdd_is_dynamic_runtime_pm_enabled(struct hdd_context *hdd_ctx) -{ - return true; -} -#endif - #ifdef MSM_PLATFORM #define COPY_CPU_MASK(a, b) cpumask_copy(a, b) #define DUMP_CPU_AFFINE() hdd_info("Set cpu_mask %*pb for affine_cores", \ @@ -9419,8 +9407,7 @@ static inline void hdd_pm_qos_update_request(struct hdd_context *hdd_ctx, cpumask_copy(&hdd_ctx->qos_cpu_mask, pm_qos_cpu_mask); - if (cpumask_empty(pm_qos_cpu_mask) && - hdd_is_dynamic_runtime_pm_enabled(hdd_ctx)) + if (cpumask_empty(pm_qos_cpu_mask)) latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; else latency = HDD_PM_QOS_HIGH_TPUT_LATENCY_US; @@ -9475,8 +9462,7 @@ static inline void hdd_pm_qos_update_request(struct hdd_context *hdd_ctx, { COPY_CPU_MASK(&hdd_ctx->pm_qos_req.cpus_affine, pm_qos_cpu_mask); - if (cpumask_empty(pm_qos_cpu_mask) && - hdd_is_dynamic_runtime_pm_enabled(hdd_ctx)) + if (cpumask_empty(pm_qos_cpu_mask)) pm_qos_update_request(&hdd_ctx->pm_qos_req, PM_QOS_DEFAULT_VALUE); else