diff --git a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c index 50e442f26efb..e8809168eb75 100644 --- a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c +++ b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -56,9 +56,6 @@ wlan_cp_stats_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc, void *arg) cp_stats_err("Failed to init cp stats ctx, bad device type"); status = QDF_STATUS_E_INVAL; goto wlan_cp_stats_psoc_obj_create_handler_return; - } else if (WLAN_DEV_DA == dev_type) { - csc->cp_stats_ctx_init = wlan_cp_stats_ctx_init_da; - csc->cp_stats_ctx_deinit = wlan_cp_stats_ctx_deinit_da; } else if (WLAN_DEV_OL == dev_type) { csc->cp_stats_ctx_init = wlan_cp_stats_ctx_init_ol; csc->cp_stats_ctx_deinit = wlan_cp_stats_ctx_deinit_ol; diff --git a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h index 0f60f94b940e..105695443b09 100644 --- a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h +++ b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -34,11 +34,7 @@ #include #include -#ifdef QCA_SUPPORT_CP_STATS_DA -#include "wlan_cp_stats_da_api.h" -#else #include "wlan_cp_stats_defs.h" -#endif /** * wlan_cp_stats_psoc_obj_create_handler() - psoc create notification handler @@ -128,19 +124,6 @@ QDF_STATUS wlan_cp_stats_peer_obj_create_handler( QDF_STATUS wlan_cp_stats_peer_obj_destroy_handler( struct wlan_objmgr_peer *peer, void *data); -#ifndef QCA_SUPPORT_CP_STATS_DA -static inline -QDF_STATUS wlan_cp_stats_ctx_init_da(struct cp_stats_context *csc) -{ - return QDF_STATUS_SUCCESS; -} - -static inline -QDF_STATUS wlan_cp_stats_ctx_deinit_da(struct cp_stats_context *csc) -{ - return QDF_STATUS_SUCCESS; -} -#endif #endif /* QCA_SUPPORT_CP_STATS */ #endif /* __WLAN_CP_STATS_OBJ_MGR_HANDLER_H__ */