1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

dmsetup: Fix dmsetup return code.

This commit is contained in:
Alasdair G Kergon 2015-08-14 00:09:40 +01:00
parent 043fb32c4b
commit 6a93206882

View File

@ -5832,7 +5832,7 @@ static int _do_report_wait(void)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int r = 1; int ret = 1, r;
const char *dev_dir; const char *dev_dir;
const struct command *cmd; const struct command *cmd;
const char *subcommand = NULL; const char *subcommand = NULL;
@ -5975,9 +5975,12 @@ doit:
} }
if (!r) if (!r)
break; goto_out;
} while (--_count); } while (--_count);
/* Success */
ret = 0;
out: out:
if (_report) if (_report)
dm_report_free(_report); dm_report_free(_report);
@ -5990,5 +5993,5 @@ out:
if (_initial_timestamp) if (_initial_timestamp)
dm_timestamp_destroy(_initial_timestamp); dm_timestamp_destroy(_initial_timestamp);
return r; return ret;
} }