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:
parent
0f0f6978e7
commit
54154dc6f1
@ -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. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user