mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: zero baton in struct initilizer
This commit is contained in:
parent
f9c6c115d3
commit
c5aeb21015
@ -2544,7 +2544,7 @@ static int _lv_mark_if_partial_collect(struct logical_volume *lv, void *data)
|
|||||||
static int _lv_mark_if_partial_single(struct logical_volume *lv, void *data)
|
static int _lv_mark_if_partial_single(struct logical_volume *lv, void *data)
|
||||||
{
|
{
|
||||||
unsigned s;
|
unsigned s;
|
||||||
struct _lv_mark_if_partial_baton baton;
|
struct _lv_mark_if_partial_baton baton = { .partial = 0 };
|
||||||
struct lv_segment *lvseg;
|
struct lv_segment *lvseg;
|
||||||
|
|
||||||
dm_list_iterate_items(lvseg, &lv->segments) {
|
dm_list_iterate_items(lvseg, &lv->segments) {
|
||||||
@ -2556,7 +2556,6 @@ static int _lv_mark_if_partial_single(struct logical_volume *lv, void *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
baton.partial = 0;
|
|
||||||
if (!_lv_each_dependency(lv, _lv_mark_if_partial_collect, &baton))
|
if (!_lv_each_dependency(lv, _lv_mark_if_partial_collect, &baton))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user