diff --git a/components/libc/compilers/newlib/minilib.c b/components/libc/compilers/newlib/minilib.c index 92877bd6c3c3fa19965989a46f6789571b391b61..ca1bea0f9147d531003071901d14116dfee330c4 100644 --- a/components/libc/compilers/newlib/minilib.c +++ b/components/libc/compilers/newlib/minilib.c @@ -63,7 +63,6 @@ _free_r (struct _reent *ptr, void *addr) void * _sbrk_r(struct _reent *ptr, ptrdiff_t incr) { - /* no use this routine to get memory */ return RT_NULL; } #endif /*RT_USING_HEAP*/ diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c index 444e3960c1e2344e517e32ef147ce8fe569d6133..e54d7583cbb1970222fc4936b73e13a42716098a 100644 --- a/components/libc/compilers/newlib/syscalls.c +++ b/components/libc/compilers/newlib/syscalls.c @@ -303,7 +303,6 @@ _free_r (struct _reent *ptr, void *addr) void * _sbrk_r(struct _reent *ptr, ptrdiff_t incr) { - /* no use this routine to get memory */ return RT_NULL; } #endif /*RT_USING_HEAP*/