1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: drop unneeded assigns

This commit is contained in:
Zdenek Kabelac 2016-02-08 13:14:43 +01:00
parent 032cf8ade6
commit 5a32d2c1d9

View File

@ -1,6 +1,6 @@
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2014 Red Hat, Inc. All rights reserved.
* Copyright (C) 2004-2016 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
@ -168,7 +168,7 @@ static int _lvresize_single(struct cmd_context *cmd, const char *vg_name,
struct volume_group *vg, struct processing_handle *handle)
{
struct lvresize_params *lp = (struct lvresize_params *) handle->custom_handle;
struct dm_list *pvh = NULL;
struct dm_list *pvh;
struct logical_volume *lv;
int ret = ECMD_FAILED;
@ -197,7 +197,7 @@ out:
int lvresize(struct cmd_context *cmd, int argc, char **argv)
{
struct processing_handle *handle = NULL;
struct processing_handle *handle;
struct lvresize_params lp = { 0 };
int ret = ECMD_FAILED;
@ -215,5 +215,6 @@ int lvresize(struct cmd_context *cmd, int argc, char **argv)
&_lvresize_single);
destroy_processing_handle(cmd, handle);
return ret;
}