xmmap(): drop "Out of memory?"
We show that message with die_errno(), but the OS is ought to know why mmap(2) failed much better than we do. There is no reason for us to say "Out of memory?" here. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
May 27, 2015 at 13:30 UTC
9ca0aaf6de357d46916d81ca40c47886092fe610
1 file changed
+1
-1
sha1_file.c
+1
-1
@@ -728,7 +728,7 @@ void *xmmap(void *start, size_t length,
728
{
729
void *ret = xmmap_gently(start, length, prot, flags, fd, offset);
730
if (ret == MAP_FAILED)
731
- die_errno("Out of memory? mmap failed");
731
+ die_errno("mmap failed");
732
return ret;
733
}
734