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