mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
raid: drop unneeded NULL test
Skip testing target_pvs for NULL, we already dereference it in many other places. If check would ever be needed - it needs to be in front of _raid_extract_images().
This commit is contained in:
parent
51dfba002b
commit
cad3568def
@ -913,7 +913,7 @@ static int _raid_extract_images(struct logical_volume *lv, uint32_t new_count,
|
|||||||
display_lvname(seg_lv(seg, s)));
|
display_lvname(seg_lv(seg, s)));
|
||||||
} else {
|
} else {
|
||||||
/* Conditions for second pass */
|
/* Conditions for second pass */
|
||||||
if (!target_pvs || !lv_is_on_pvs(seg_lv(seg, s), target_pvs) ||
|
if (!lv_is_on_pvs(seg_lv(seg, s), target_pvs) ||
|
||||||
!lv_is_on_pvs(seg_metalv(seg, s), target_pvs))
|
!lv_is_on_pvs(seg_metalv(seg, s), target_pvs))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user