You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by sa...@apache.org on 2021/06/11 13:50:04 UTC

[incubator-nuttx] branch master updated: risc-v/esp32c3_wifi_adapter.c: Remove a config that's only used in Xtensa chips.

This is an automated email from the ASF dual-hosted git repository.

sara pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 96bcf76  risc-v/esp32c3_wifi_adapter.c: Remove a config that's only used in Xtensa chips.
96bcf76 is described below

commit 96bcf7678b7c2fd6edd7fa51f237f75e9a509efa
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Fri Jun 11 12:48:08 2021 +0100

    risc-v/esp32c3_wifi_adapter.c: Remove a config that's only used in
    Xtensa chips.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c b/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c
index 4af7668..97be493 100644
--- a/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c
+++ b/arch/risc-v/src/esp32c3/esp32c3_wifi_adapter.c
@@ -1962,16 +1962,7 @@ static void *esp_malloc(unsigned int size)
 
 static void esp_free(void *ptr)
 {
-#ifdef CONFIG_XTENSA_IMEM_USE_SEPARATE_HEAP
-  if (xtensa_imm_heapmember(ptr))
-    {
-      xtensa_imm_free(ptr);
-    }
-  else
-#endif
-    {
-      kmm_free(ptr);
-    }
+  kmm_free(ptr);
 }
 
 /****************************************************************************