Skip to content

Commit

Permalink
broker/content-cache: remove unused variable
Browse files Browse the repository at this point in the history
Problem: In cache_flush(), the variable count is set, but not used.

Solution: Remove the variable.
  • Loading branch information
chu11 committed Jun 21, 2022
1 parent 09c8a45 commit 939507d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/broker/content-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ static int cache_flush (struct content_cache *cache)
{
struct cache_entry *e;
int last_errno = 0;
int count = 0;
int rc = 0;

while (cache->flush_batch_count < cache->flush_batch_limit) {
Expand All @@ -621,7 +620,6 @@ static int cache_flush (struct content_cache *cache)
last_errno = errno; // and continuation will decr
rc = -1;
}
count++;
}
if (rc < 0)
errno = last_errno;
Expand Down

0 comments on commit 939507d

Please sign in to comment.