sha1_file: remove an used fd variable

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sebastian Schuberth committed Apr 16, 2017 at 19:04 UTC 0747fb49fd23945843e8824cb56c4463b10a34e0
1 file changed -3
sha1_file.c
-3
@@ -3870,7 +3870,6 @@ int read_loose_object(const char *path,
3870 void **contents)
3871 {
3872 int ret = -1;
3873 - int fd = -1;
3873 void *map = NULL;
3874 unsigned long mapsize;
3875 git_zstream stream;
@@ -3920,7 +3919,5 @@ int read_loose_object(const char *path,
3919 out:
3920 if (map)
3921 munmap(map, mapsize);
3923 - if (fd >= 0)
3924 - close(fd);
3922 return ret;
3923 }