From 83d483269de367facc14eee9072b79ffabdcaf82 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 15 Jun 2016 14:55:37 +0200 Subject: [PATCH] cleanup: drop setting lv_name lv_name arg is only used without known LV for resolving '*lv'. Once we know *lv, never use lv_name ever again. So setting it when passing *lv has not needed. --- lib/locking/lvmlockd.c | 1 - liblvm/lvm_lv.c | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c index f9d215a76..e0254289e 100644 --- a/lib/locking/lvmlockd.c +++ b/lib/locking/lvmlockd.c @@ -367,7 +367,6 @@ static int _extend_sanlock_lv(struct cmd_context *cmd, struct volume_group *vg, { struct logical_volume *lv = vg->sanlock_lv; struct lvresize_params lp = { - .lv_name = vg->sanlock_lv->name, .sign = SIGN_NONE, .size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE), .percent = PERCENT_NONE, diff --git a/liblvm/lvm_lv.c b/liblvm/lvm_lv.c index ccdc34093..05dd4820a 100644 --- a/liblvm/lvm_lv.c +++ b/liblvm/lvm_lv.c @@ -457,7 +457,6 @@ int lvm_lv_resize(const lv_t lv, uint64_t new_size) { int rc = 0; struct lvresize_params lp = { - .lv_name = lv->name, .sign = SIGN_NONE, .percent = PERCENT_NONE, .resize = LV_ANY,