mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cleanup: drop unneeded assigns
This commit is contained in:
parent
032cf8ade6
commit
5a32d2c1d9
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
* 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.
|
* 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 volume_group *vg, struct processing_handle *handle)
|
||||||
{
|
{
|
||||||
struct lvresize_params *lp = (struct lvresize_params *) handle->custom_handle;
|
struct lvresize_params *lp = (struct lvresize_params *) handle->custom_handle;
|
||||||
struct dm_list *pvh = NULL;
|
struct dm_list *pvh;
|
||||||
struct logical_volume *lv;
|
struct logical_volume *lv;
|
||||||
int ret = ECMD_FAILED;
|
int ret = ECMD_FAILED;
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ out:
|
|||||||
|
|
||||||
int lvresize(struct cmd_context *cmd, int argc, char **argv)
|
int lvresize(struct cmd_context *cmd, int argc, char **argv)
|
||||||
{
|
{
|
||||||
struct processing_handle *handle = NULL;
|
struct processing_handle *handle;
|
||||||
struct lvresize_params lp = { 0 };
|
struct lvresize_params lp = { 0 };
|
||||||
int ret = ECMD_FAILED;
|
int ret = ECMD_FAILED;
|
||||||
|
|
||||||
@ -215,5 +215,6 @@ int lvresize(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
&_lvresize_single);
|
&_lvresize_single);
|
||||||
|
|
||||||
destroy_processing_handle(cmd, handle);
|
destroy_processing_handle(cmd, handle);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user