projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Remove the explicit Makefile dependencies description
[git.git]
/
rev-cache.c
diff --git
a/rev-cache.c
b/rev-cache.c
index
ea65274
..
f908ce7
100644
(file)
--- a/
rev-cache.c
+++ b/
rev-cache.c
@@
-212,11
+212,9
@@
int read_rev_cache(const char *path, FILE *dumpfile, int dry_run)
return -1;
}
map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
- if (map == MAP_FAILED) {
- close(fd);
- return -1;
- }
close(fd);
+ if (map == MAP_FAILED)
+ return -1;
memset(last_sha1, 0, 20);
ofs = 0;