From: Junio C Hamano Date: Wed, 27 May 2015 20:30:29 +0000 (-0700) Subject: xmmap(): drop "Out of memory?" X-Git-Tag: v2.4.5~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ca0aaf6de357d46916d81ca40c47886092fe610;p=thirdparty%2Fgit.git 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 --- diff --git a/sha1_file.c b/sha1_file.c index ca491ab8bb..1457069a1a 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -728,7 +728,7 @@ void *xmmap(void *start, size_t length, { void *ret = xmmap_gently(start, length, prot, flags, fd, offset); if (ret == MAP_FAILED) - die_errno("Out of memory? mmap failed"); + die_errno("mmap failed"); return ret; }