mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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)));
|
||||
} else {
|
||||
/* 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))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user