Remove unneeded timeout when remove of temporary device succeeded.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@72 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2009-07-22 20:21:49 +00:00
parent aecd010c3b
commit ea0ee83025
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2009-07-22 Milan Broz <mbroz@redhat.com>
* Remove unneeded timeout when remove of temporary device succeeded.
2009-07-22 Milan Broz <mbroz@redhat.com>
* version 1.0.7

View File

@@ -240,7 +240,7 @@ static int _dm_remove(struct crypt_options *options, int force)
do {
r = _dm_simple(DM_DEVICE_REMOVE, options->name) ? 0 : -EINVAL;
if (--retries)
if (--retries && r)
sleep(1);
} while (r == -EINVAL && retries);