summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-01-14 09:57:07 +0100
committerantirez <antirez@gmail.com>2011-01-14 09:57:07 +0100
commitc13c4080e513cda2a1f1fce593ec45fb3a3c9666 (patch)
treed5f1560b658c1a18ac1aa93d2f2cfee6ff9eba88
parent360664c9c8da2cbacc5000d7a058c754a36f8ec7 (diff)
downloadredis-c13c4080e513cda2a1f1fce593ec45fb3a3c9666.tar.gz
useless expression removed in zmalloc.c
-rw-r--r--src/zmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmalloc.c b/src/zmalloc.c
index ed19616b8..b438017dc 100644
--- a/src/zmalloc.c
+++ b/src/zmalloc.c
@@ -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];
}