diff --git a/libs/libxx/libcxxmini/libxx_new.cxx b/libs/libxx/libcxxmini/libxx_new.cxx index 997ab87ea2..be78cc7df0 100644 --- a/libs/libxx/libcxxmini/libxx_new.cxx +++ b/libs/libxx/libcxxmini/libxx_new.cxx @@ -48,13 +48,6 @@ FAR void *operator new(std::size_t nbytes) { - // We have to allocate something - - if (nbytes < 1) - { - nbytes = 1; - } - // Perform the allocation FAR void *alloc = lib_malloc(nbytes); diff --git a/libs/libxx/libcxxmini/libxx_newa.cxx b/libs/libxx/libcxxmini/libxx_newa.cxx index f0d3eb07d5..f0788026b6 100644 --- a/libs/libxx/libcxxmini/libxx_newa.cxx +++ b/libs/libxx/libcxxmini/libxx_newa.cxx @@ -56,13 +56,6 @@ FAR void *operator new[](std::size_t nbytes) { - // We have to allocate something - - if (nbytes < 1) - { - nbytes = 1; - } - // Perform the allocation FAR void *alloc = lib_malloc(nbytes);