mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dmsetup: Fix dmsetup return code.
This commit is contained in:
parent
043fb32c4b
commit
6a93206882
@ -5832,7 +5832,7 @@ static int _do_report_wait(void)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int r = 1;
|
||||
int ret = 1, r;
|
||||
const char *dev_dir;
|
||||
const struct command *cmd;
|
||||
const char *subcommand = NULL;
|
||||
@ -5975,9 +5975,12 @@ doit:
|
||||
}
|
||||
|
||||
if (!r)
|
||||
break;
|
||||
goto_out;
|
||||
} while (--_count);
|
||||
|
||||
/* Success */
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
if (_report)
|
||||
dm_report_free(_report);
|
||||
@ -5990,5 +5993,5 @@ out:
|
||||
if (_initial_timestamp)
|
||||
dm_timestamp_destroy(_initial_timestamp);
|
||||
|
||||
return r;
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user