From 7132ff1b7c74a937d73c8f3a94ee7e1e2f09399c Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Mon, 7 Oct 2019 00:12:12 -0600 Subject: [PATCH] cache: Remove unused return from 'cache_key_exist' If 'tmp' isn't accessed, 0 is returned by the function anyway. This is a duplicate case therefore is not needed. Signed-off-by: RJ Trujillo --- src/cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cache.c b/src/cache.c index be573532..3fdf51da 100644 --- a/src/cache.c +++ b/src/cache.c @@ -243,8 +243,6 @@ cache_key_exist(struct cache *cache, char *key, size_t key_len) tmp->ts = ev_time(); HASH_ADD_KEYPTR(hh, cache->entries, tmp->key, key_len, tmp); return 1; - } else { - return 0; } return 0;