From 5a37ac25a9403d15dd0c72467b43366aab937f81 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 26 Jan 2019 10:17:21 -0600 Subject: [PATCH] mm/shm/shm_initialize.c: Remove some unused, #ifdef'ed out code. --- mm/shm/shm_initialize.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/mm/shm/shm_initialize.c b/mm/shm/shm_initialize.c index 633ad556c8..428eefc894 100644 --- a/mm/shm/shm_initialize.c +++ b/mm/shm/shm_initialize.c @@ -80,25 +80,9 @@ struct shm_info_s g_shminfo; void shm_initialize(void) { -#if 0 - FAR struct shm_region_s *region; - int i; -#endif - /* Initialize the shared memory region list */ nxsem_init(&g_shminfo.si_sem, 0, 1); - -#if 0 - /* Initialize each shared memory region */ - - for (i = 0; i < CONFIG_ARCH_SHM_NPAGES; i++) - { - region = &g_shminfo.si_region[i]; - - /* Nothing to be done */ - } -#endif } /****************************************************************************