uncrypt: fix call to close().
Bug: 27897229 Change-Id: Iab5e829af1676f7fcd8a4b00a194aa679ed4e372
This commit is contained in:
parent
1ee0ff3d78
commit
ffa3a1c222
1 changed files with 2 additions and 2 deletions
|
@ -372,7 +372,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
|
|||
ALOGE("failed to fsync \"%s\": %s", tmp_map_file.c_str(), strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
if (close(mapfd.get() == -1)) {
|
||||
if (close(mapfd.get()) == -1) {
|
||||
ALOGE("failed to close %s: %s", tmp_map_file.c_str(), strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
@ -406,7 +406,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
|
|||
ALOGE("failed to fsync %s: %s", dir_name.c_str(), strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
if (close(dfd.get() == -1)) {
|
||||
if (close(dfd.get()) == -1) {
|
||||
ALOGE("failed to close %s: %s", dir_name.c_str(), strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue