diff --git a/core/hdd/src/wlan_hdd_sysfs.c b/core/hdd/src/wlan_hdd_sysfs.c index c2a72a9282..40454f3a5c 100644 --- a/core/hdd/src/wlan_hdd_sysfs.c +++ b/core/hdd/src/wlan_hdd_sysfs.c @@ -522,6 +522,7 @@ void hdd_sysfs_destroy_powerstats_interface(void) } sysfs_remove_file(driver_kobject, &power_stats_attribute.attr); } +#endif void hdd_sysfs_create_driver_root_obj(void) { @@ -551,7 +552,6 @@ void hdd_sysfs_destroy_driver_root_obj(void) driver_kobject = NULL; } } -#endif #ifdef WLAN_FEATURE_BEACON_RECEPTION_STATS static int hdd_sysfs_create_bcn_reception_interface(struct hdd_adapter diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 77b0bd868d..5dc9742565 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -4902,13 +4902,6 @@ int wma_unified_power_debug_stats_event_handler(void *handle, qdf_mem_free(power_stats_results); return 0; } -#else -int wma_unified_power_debug_stats_event_handler(void *handle, - uint8_t *cmd_param_info, - uint32_t len) -{ - return 0; -} #endif #ifdef WLAN_FEATURE_BEACON_RECEPTION_STATS