mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
cleanup: simplify
This commit is contained in:
parent
a7cf55c6a1
commit
1fb3e08033
@ -936,7 +936,9 @@ int lv_integrity_mismatches(struct cmd_context *cmd,
|
|||||||
const struct logical_volume *lv,
|
const struct logical_volume *lv,
|
||||||
uint64_t *mismatches)
|
uint64_t *mismatches)
|
||||||
{
|
{
|
||||||
struct lv_with_info_and_seg_status status;
|
struct lv_with_info_and_seg_status status = {
|
||||||
|
.seg_status.type = SEG_STATUS_NONE,
|
||||||
|
};
|
||||||
|
|
||||||
if (lv_is_raid(lv) && lv_raid_has_integrity((struct logical_volume *)lv))
|
if (lv_is_raid(lv) && lv_raid_has_integrity((struct logical_volume *)lv))
|
||||||
return lv_raid_integrity_total_mismatches(cmd, lv, mismatches);
|
return lv_raid_integrity_total_mismatches(cmd, lv, mismatches);
|
||||||
@ -944,9 +946,6 @@ int lv_integrity_mismatches(struct cmd_context *cmd,
|
|||||||
if (!lv_is_integrity(lv))
|
if (!lv_is_integrity(lv))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
memset(&status, 0, sizeof(status));
|
|
||||||
status.seg_status.type = SEG_STATUS_NONE;
|
|
||||||
|
|
||||||
status.seg_status.seg = first_seg(lv);
|
status.seg_status.seg = first_seg(lv);
|
||||||
|
|
||||||
/* FIXME: why reporter_pool? */
|
/* FIXME: why reporter_pool? */
|
||||||
|
Loading…
Reference in New Issue
Block a user