diff --git a/tools/command.c b/tools/command.c index b8b38ad78..5c2ec2618 100644 --- a/tools/command.c +++ b/tools/command.c @@ -1817,8 +1817,6 @@ void print_usage(struct command *cmd, int longhelp, int desc_first) } if (!onereq && cmd->ro_count) { - first = 1; - for (ro = 0; ro < cmd->ro_count; ro++) { opt_enum = cmd->required_opt_args[ro].opt; diff --git a/tools/reporter.c b/tools/reporter.c index b9c415315..ad9d5eeb6 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -1387,7 +1387,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv, report_type_t struct single_report_args *single_args = &args.single_args[REPORT_IDX_SINGLE]; static char report_name[] = "report"; struct processing_handle *handle; - int r = ECMD_FAILED; + int r; /* * Include foreign VGs that contain active LVs. diff --git a/tools/toollib.c b/tools/toollib.c index 622dbf3eb..452c8b069 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -2690,7 +2690,7 @@ static int _lv_props_match(struct cmd_context *cmd, struct logical_volume *lv, u static int _check_lv_types(struct cmd_context *cmd, struct logical_volume *lv, int pos) { - int ret = 1; + int ret; if (!pos) return 1;