You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/11/01 14:03:08 UTC

[incubator-nuttx] branch master updated: libc: Remove the empty lib_initialize

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

gustavonihei 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 aec01e9  libc: Remove the empty lib_initialize
aec01e9 is described below

commit aec01e96fa39582825816c72adf0e4aed9009b6c
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Nov 1 01:05:26 2021 +0800

    libc: Remove the empty lib_initialize
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 include/nuttx/lib/lib.h | 4 ----
 sched/init/nx_start.c   | 7 -------
 2 files changed, 11 deletions(-)

diff --git a/include/nuttx/lib/lib.h b/include/nuttx/lib/lib.h
index 2b2e1f6..95ed98c 100644
--- a/include/nuttx/lib/lib.h
+++ b/include/nuttx/lib/lib.h
@@ -101,10 +101,6 @@ extern "C"
  * Public Function Prototypes
  ****************************************************************************/
 
-/* Hook for library initialization.  No is needed now, however */
-
-#define lib_initialize()
-
 /* Functions contained in lib_streams.c *************************************/
 
 #ifdef CONFIG_FILE_STREAM
diff --git a/sched/init/nx_start.c b/sched/init/nx_start.c
index 0f034ae..5a9ee3e 100644
--- a/sched/init/nx_start.c
+++ b/sched/init/nx_start.c
@@ -35,7 +35,6 @@
 #include <nuttx/sched.h>
 #include <nuttx/fs/fs.h>
 #include <nuttx/net/net.h>
-#include <nuttx/lib/lib.h>
 #include <nuttx/mm/iob.h>
 #include <nuttx/mm/mm.h>
 #include <nuttx/mm/shm.h>
@@ -709,12 +708,6 @@ void nx_start(void)
   shm_initialize();
 #endif
 
-  /* Initialize the C libraries.  This is done last because the libraries
-   * may depend on the above.
-   */
-
-  lib_initialize();
-
 #ifndef CONFIG_BINFMT_DISABLE
   /* Initialize the binfmt system */