Removed unnecessary result variable from memory_init.
Simplified return statement for memory_init