]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sandbox: fix the return type of os_free() function
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 15 Jan 2014 04:06:41 +0000 (13:06 +0900)
committerTom Rini <trini@ti.com>
Fri, 24 Jan 2014 21:59:08 +0000 (16:59 -0500)
The function os_free() returns nothing.
Its return type should be "void" rather than "void *".

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
arch/sandbox/cpu/os.c
include/os.h

index 725b505177d33938cee5cf4ce8308bb13bf11c9a..2e2fc58a1ba86630307dec70613e47571820a57b 100644 (file)
@@ -143,7 +143,7 @@ void *os_malloc(size_t length)
        return hdr + 1;
 }
 
-void *os_free(void *ptr)
+void os_free(void *ptr)
 {
        struct os_mem_hdr *hdr = ptr;
 
index b65fba430144d2587c068756fd8bfbd001799354..d6d6e5794e479460f9881f59e90fc453bb519e8e 100644 (file)
@@ -113,7 +113,7 @@ void *os_malloc(size_t length);
  *
  * \param ptr          Pointer to memory block to free
  */
-void *os_free(void *ptr);
+void os_free(void *ptr);
 
 /**
  * Reallocate previously-allocated memory to increase/decrease space