Merge branch 'jk/loose-object-fsck'

Code cleanup.

* jk/loose-object-fsck:
  sha1_file: remove an used fd variable
This commit is contained in:
Junio C Hamano 2017-04-23 22:07:50 -07:00
commit d7f8a37852

View File

@ -3972,7 +3972,6 @@ int read_loose_object(const char *path,
void **contents)
{
int ret = -1;
int fd = -1;
void *map = NULL;
unsigned long mapsize;
git_zstream stream;
@ -4022,7 +4021,5 @@ int read_loose_object(const char *path,
out:
if (map)
munmap(map, mapsize);
if (fd >= 0)
close(fd);
return ret;
}