useless expression removed in zmalloc.c

This commit is contained in:
antirez 2011-01-14 09:57:07 +01:00
parent 360664c9c8
commit c13c4080e5

View File

@ -186,7 +186,7 @@ size_t zmalloc_used_memory(void) {
}
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];
}