diff options
author | Simon Glass <sjg@chromium.org> | 2020-02-03 07:36:03 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-02-05 19:33:46 -0700 |
commit | 89cdb0b583b9bd98e9d73b1a56d097ed494c3046 (patch) | |
tree | c90bc86debbb46c93452ade35bf03072e24dbd78 /arch/sandbox | |
parent | 0db1b4305ad5ba8ef9c41d2f07697c77a04787e2 (diff) |
sandbox: Drop os_realloc()
Due to recent changes this function is no-longer used. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/cpu/os.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index d5e5b561b6a..60011f7abc7 100644 --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c @@ -238,29 +238,6 @@ void os_free(void *ptr) } } -void *os_realloc(void *ptr, size_t length) -{ - int page_size = getpagesize(); - struct os_mem_hdr *hdr; - void *buf = NULL; - - if (length) { - buf = os_malloc(length); - if (!buf) - return buf; - if (ptr) { - hdr = ptr - page_size; - if (length > hdr->length) - length = hdr->length; - memcpy(buf, ptr, length); - } - } - if (ptr) - os_free(ptr); - - return buf; -} - void os_usleep(unsigned long usec) { usleep(usec); |