Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c13c4080
Commit
c13c4080
authored
Jan 14, 2011
by
antirez
Browse files
useless expression removed in zmalloc.c
parent
360664c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zmalloc.c
View file @
c13c4080
...
@@ -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
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment