diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-02-23 19:57:56 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-02-23 21:40:16 +0100 |
commit | 9b92cb27609ed239814d1e0d36f77d41464b23bd (patch) | |
tree | 13d2dc2d36f84eb7adda2b12e705ec73ca4131c5 /tools/lvresize.c | |
parent | eaaae185b7870372298502d076defab2c3486ed3 (diff) | |
download | lvm2-9b92cb27609ed239814d1e0d36f77d41464b23bd.tar.gz |
coverity: drop unused assignments
Diffstat (limited to 'tools/lvresize.c')
-rw-r--r-- | tools/lvresize.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lvresize.c b/tools/lvresize.c index af6ce07b7..2c2df366c 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -199,10 +199,12 @@ int lvresize(struct cmd_context *cmd, int argc, char **argv) { struct processing_handle *handle; struct lvresize_params lp = { 0 }; - int ret = ECMD_FAILED; + int ret; - if (!_lvresize_params(cmd, argc, argv, &lp)) + if (!_lvresize_params(cmd, argc, argv, &lp)) { + stack; return EINVALID_CMD_LINE; + } if (!(handle = init_processing_handle(cmd))) { log_error("Failed to initialize processing handle."); |