From dee0b939fcd6650edfd8705f0685cd8430750085 Mon Sep 17 00:00:00 2001 From: charsyam Date: Mon, 26 Nov 2012 07:36:39 +0800 Subject: [PATCH] Remove unnecessary condition in _dictExpandIfNeeded (dict.c) --- src/dict.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dict.c b/src/dict.c index 8272fa817642..d47fc6ac1517 100644 --- a/src/dict.c +++ b/src/dict.c @@ -621,8 +621,7 @@ static int _dictExpandIfNeeded(dict *d) (dict_can_resize || d->ht[0].used/d->ht[0].size > dict_force_resize_ratio)) { - return dictExpand(d, ((d->ht[0].size > d->ht[0].used) ? - d->ht[0].size : d->ht[0].used)*2); + return dictExpand(d, d->ht[0].used*2); } return DICT_OK; }