The argument is never used, so it can be dropped. Furthermore, it sometimes contains a name of a VG and sometimes name of a LV, so using it would be dangerous. Signed-off-by: Mikulas Patocka --- tools/polldaemon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Index: LVM2.2.02.39/tools/polldaemon.c =================================================================== --- LVM2.2.02.39.orig/tools/polldaemon.c 2008-07-11 22:31:10.000000000 +0200 +++ LVM2.2.02.39/tools/polldaemon.c 2008-07-11 22:31:19.000000000 +0200 @@ -65,7 +65,7 @@ static int _become_daemon(struct cmd_con static int _check_lv_status(struct cmd_context *cmd, struct volume_group *vg, struct logical_volume *lv, - const char *name, struct daemon_parms *parms, + struct daemon_parms *parms, int *finished) { struct list *lvs_changed; @@ -161,8 +161,7 @@ static int _wait_for_single_lv(struct cm return 0; } - if (!_check_lv_status(cmd, vg, lv, name, parms, - &finished)) { + if (!_check_lv_status(cmd, vg, lv, parms, &finished)) { unlock_vg(cmd, vg->name); return 0; }