From 5d3f74c518df7d535df578705d5e635d3a47fd16 Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Mon, 10 Oct 2016 17:51:06 -0700 Subject: [PATCH] qcacld-3.0: Remove duplicate cds_deinit_policy_mgr in error handling hdd_wlan_stop_modules takes care of the cds_deinit_policy_mgr call. Therefore hdd_wlan_startup doesn not need to directly call this api. Change-Id: Ic9abbeb44697e6e9a02208eadad48e9a4cdcc16a CRs-Fixed: 1079503 --- core/hdd/src/wlan_hdd_main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 2fbd8c8b881c..203eddfb7781 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8112,10 +8112,6 @@ err_stop_modules: err_exit_nl_srv: hdd_exit_netlink_services(hdd_ctx); - if (!QDF_IS_STATUS_SUCCESS(cds_deinit_policy_mgr())) { - hdd_err("Failed to deinit policy manager"); - /* Proceed and complete the clean up */ - } cds_deinit_ini_config(); err_hdd_free_context: qdf_mc_timer_destroy(&hdd_ctx->iface_change_timer);