mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2026-01-04 14:40:23 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user