wlan: Fix compilation errors.
Resolve compilation errors when macro 'CONFIG_ENABLE_LINUX_REG' is
disabled.
Change-Id: I32220d7ccdb8503458f0d1f74436ec3191bed0be
CRs-Fixed: 634194
(cherry picked from commit 7bbfe1e0fd71002358519c1e353940fca5daccc4)
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 2e0442a..54b0077 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -8733,13 +8733,13 @@
}
vos_close(pVosContext );
-#ifdef CONFIG_ENABLE_LINUX_REG
err_vos_nv_close:
+#ifdef CONFIG_ENABLE_LINUX_REG
vos_nv_close();
+#endif
err_clkvote:
-#endif
vos_chipVoteOffXOBuffer(NULL, NULL, NULL);