diff --git a/qdf/linux/src/i_qdf_time.h b/qdf/linux/src/i_qdf_time.h index fc4803b48322..69fd0c695e95 100644 --- a/qdf/linux/src/i_qdf_time.h +++ b/qdf/linux/src/i_qdf_time.h @@ -36,9 +36,6 @@ #ifdef MSM_PLATFORM #include #endif -#ifdef CONFIG_CNSS -#include -#endif typedef unsigned long __qdf_time_t; typedef ktime_t __qdf_ktime_t; diff --git a/qdf/linux/src/qdf_mem.c b/qdf/linux/src/qdf_mem.c index 1e203574b4a3..3ebd86d7e053 100644 --- a/qdf/linux/src/qdf_mem.c +++ b/qdf/linux/src/qdf_mem.c @@ -36,11 +36,7 @@ #include #include -#if defined(CONFIG_CNSS) -#include -#endif - -#ifdef CONFIG_WCNSS_MEM_PRE_ALLOC +#if IS_ENABLED(CONFIG_WCNSS_MEM_PRE_ALLOC) #include #endif @@ -1037,7 +1033,7 @@ void __qdf_mempool_free(qdf_device_t osdev, __qdf_mempool_t pool, void *buf) } qdf_export_symbol(__qdf_mempool_free); -#ifdef CONFIG_WCNSS_MEM_PRE_ALLOC +#if IS_ENABLED(CONFIG_WCNSS_MEM_PRE_ALLOC) /** * qdf_mem_prealloc_get() - conditionally pre-allocate memory * @size: the number of bytes to allocate