Commit c13c4080 authored by antirez's avatar antirez
Browse files

useless expression removed in zmalloc.c

parent 360664c9
...@@ -186,7 +186,7 @@ size_t zmalloc_used_memory(void) { ...@@ -186,7 +186,7 @@ size_t zmalloc_used_memory(void) {
} }
size_t zmalloc_allocations_for_size(size_t size) { size_t zmalloc_allocations_for_size(size_t size) {
if (size > ZMALLOC_MAX_ALLOC_STAT || size < 0) return 0; if (size > ZMALLOC_MAX_ALLOC_STAT) return 0;
return zmalloc_allocations[size]; return zmalloc_allocations[size];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment