1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

lvmlockd: clear coverity complaint

from previous coverity fix, it's never happy.
This commit is contained in:
David Teigland 2017-12-18 15:19:17 -06:00
parent 81be333e9f
commit 3f9ae846b8

View File

@ -2148,7 +2148,7 @@ int lockd_lv_name(struct cmd_context *cmd, struct volume_group *vg,
static int _lockd_lv_thin(struct cmd_context *cmd, struct logical_volume *lv, static int _lockd_lv_thin(struct cmd_context *cmd, struct logical_volume *lv,
const char *def_mode, uint32_t flags) const char *def_mode, uint32_t flags)
{ {
struct logical_volume *pool_lv; struct logical_volume *pool_lv = NULL;
if (lv_is_thin_volume(lv)) { if (lv_is_thin_volume(lv)) {
struct lv_segment *pool_seg = first_seg(lv); struct lv_segment *pool_seg = first_seg(lv);