|
@@ -36,11 +36,7 @@
|
|
|
#include <linux/string.h>
|
|
|
#include <qdf_list.h>
|
|
|
|
|
|
-#if defined(CONFIG_CNSS)
|
|
|
-#include <net/cnss.h>
|
|
|
-#endif
|
|
|
-
|
|
|
-#ifdef CONFIG_WCNSS_MEM_PRE_ALLOC
|
|
|
+#if IS_ENABLED(CONFIG_WCNSS_MEM_PRE_ALLOC)
|
|
|
#include <net/cnss_prealloc.h>
|
|
|
#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
|