Merge pull request #261 from micrakow/coverity_19_9

Fixed some bugs found by the coverity tool
This commit is contained in:
Michał Mielewczyk
2019-09-17 09:25:18 +02:00
committed by GitHub
8 changed files with 33 additions and 20 deletions

View File

@@ -64,7 +64,7 @@ static int ocf_part_lst_cmp_valid(struct ocf_cache *cache,
if (!p2->config->flags.valid) {
if (p2_size) {
v2 = SHRT_MAX;
p1->config->flags.eviction = true;
p2->config->flags.eviction = true;
} else {
v2 = SHRT_MIN;
p2->config->flags.eviction = false;