1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

coverity: drop unneeded assigns

This commit is contained in:
Zdenek Kabelac 2017-06-27 11:38:56 +02:00
parent 419e8284c8
commit 0349b6d889
3 changed files with 2 additions and 4 deletions

View File

@ -1817,8 +1817,6 @@ void print_usage(struct command *cmd, int longhelp, int desc_first)
} }
if (!onereq && cmd->ro_count) { if (!onereq && cmd->ro_count) {
first = 1;
for (ro = 0; ro < cmd->ro_count; ro++) { for (ro = 0; ro < cmd->ro_count; ro++) {
opt_enum = cmd->required_opt_args[ro].opt; opt_enum = cmd->required_opt_args[ro].opt;

View File

@ -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]; struct single_report_args *single_args = &args.single_args[REPORT_IDX_SINGLE];
static char report_name[] = "report"; static char report_name[] = "report";
struct processing_handle *handle; struct processing_handle *handle;
int r = ECMD_FAILED; int r;
/* /*
* Include foreign VGs that contain active LVs. * Include foreign VGs that contain active LVs.

View File

@ -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) static int _check_lv_types(struct cmd_context *cmd, struct logical_volume *lv, int pos)
{ {
int ret = 1; int ret;
if (!pos) if (!pos)
return 1; return 1;