1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00

lvmlockd: clear coverity complaint

This commit is contained in:
David Teigland 2017-12-06 10:48:32 -06:00
parent 0f0f6978e7
commit 54154dc6f1

View File

@ -2163,7 +2163,8 @@ static int _lockd_lv_thin(struct cmd_context *cmd, struct logical_volume *lv,
} else if (lv_is_thin_pool_metadata(lv)) { } else if (lv_is_thin_pool_metadata(lv)) {
struct lv_segment *pool_seg = get_only_segment_using_this_lv(lv); struct lv_segment *pool_seg = get_only_segment_using_this_lv(lv);
pool_lv = pool_seg->lv; if (pool_seg)
pool_lv = pool_seg->lv;
} else { } else {
/* This should not happen AFAIK. */ /* This should not happen AFAIK. */