diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-02-19 14:03:45 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-02-19 14:43:25 +0100 |
commit | 4c184e9d6b4aa74b5fbed0fb8710dc38b38545f9 (patch) | |
tree | f751b116c324ed8e522248ac2d7ecc63ef77e100 /tools/pvresize.c | |
parent | ed420fb6917162ed17af69a9a0ec9ae26e61e209 (diff) | |
download | lvm2-4c184e9d6b4aa74b5fbed0fb8710dc38b38545f9.tar.gz |
cleanup: drop unused value assign
Dop unused value assignments.
Unknown is detected via other combination
(!linear && !striped).
Also change the log_error() message into a warning,
since the function is not really returning error,
but still keep the INTERNAL_ERROR.
Ret value is always set later.
Diffstat (limited to 'tools/pvresize.c')
-rw-r--r-- | tools/pvresize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvresize.c b/tools/pvresize.c index 0f992a212..3057a7fb9 100644 --- a/tools/pvresize.c +++ b/tools/pvresize.c @@ -48,7 +48,7 @@ int pvresize(struct cmd_context *cmd, int argc, char **argv) { struct pvresize_params params; struct processing_handle *handle = NULL; - int ret = ECMD_PROCESSED; + int ret; if (!argc) { log_error("Please supply physical volume(s)"); |