From c5aeb210155eff180ad5f1127ed451307bd7b854 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 9 Dec 2016 15:08:04 +0100 Subject: [PATCH] cleanup: zero baton in struct initilizer --- lib/metadata/metadata.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index ad6cb2a92..c636fe271 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -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) { unsigned s; - struct _lv_mark_if_partial_baton baton; + struct _lv_mark_if_partial_baton baton = { .partial = 0 }; struct lv_segment *lvseg; 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)) return_0;