Reuse device file desriptors.

This commit is contained in:
Ondrej Kozina
2019-05-10 15:19:33 +02:00
committed by Milan Broz
parent ecbb9cfa90
commit ee57b865b0
14 changed files with 105 additions and 118 deletions

View File

@@ -134,7 +134,6 @@ static int reenc_keyslot_store_data(struct crypt_device *cd,
r = -EIO;
else
r = 0;
close(devfd);
} else
r = -EINVAL;