]> sourceware.org Git - lvm2.git/commitdiff
Remove dead store in lvm_run_command
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 20 Dec 2010 13:59:52 +0000 (13:59 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 20 Dec 2010 13:59:52 +0000 (13:59 +0000)
Variable 'ret' is not read before its next assignment.

tools/lvmcmdline.c

index dcb1f28ce88f1ad239dad42c4062025664b35cd3..836dbaa5a92ce3db24d50dd86941fe7d034031b0 100644 (file)
@@ -1064,8 +1064,8 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv)
        set_cmd_name(cmd->command->name);
 
        if (arg_count(cmd, config_ARG))
-               if ((ret = override_config_tree_from_string(cmd,
-                            arg_str_value(cmd, config_ARG, "")))) {
+               if (override_config_tree_from_string(cmd,
+                   arg_str_value(cmd, config_ARG, ""))) {
                        ret = EINVALID_CMD_LINE;
                        goto_out;
                }
This page took 0.031952 seconds and 5 git commands to generate.