dm: avoid useless 'else' after 'break' or return'
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
This commit is contained in:
committed by
Mike Snitzer
parent
ae99111ecf
commit
1c3fe2fa94
@@ -1352,8 +1352,8 @@ static int find_key(struct ro_spine *s, dm_block_t block, bool find_highest,
|
||||
i = le32_to_cpu(ro_node(s)->header.nr_entries);
|
||||
if (!i)
|
||||
return -ENODATA;
|
||||
else
|
||||
i--;
|
||||
|
||||
i--;
|
||||
|
||||
if (find_highest)
|
||||
*result_key = le64_to_cpu(ro_node(s)->keys[i]);
|
||||
|
||||
@@ -793,13 +793,12 @@ static int __sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b,
|
||||
rc = le32_to_cpu(*v_ptr);
|
||||
*old_rc = rc;
|
||||
|
||||
if (rc == 3) {
|
||||
if (rc == 3)
|
||||
return __sm_ll_del_overflow(ll, b, ic);
|
||||
} else {
|
||||
rc--;
|
||||
*v_ptr = cpu_to_le32(rc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
rc--;
|
||||
*v_ptr = cpu_to_le32(rc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b,
|
||||
|
||||
Reference in New Issue
Block a user