From: David Rientjes Date: Mon, 14 Aug 2006 20:32:01 +0000 (-0700) Subject: Make sha1flush void and remove conditional return. X-Git-Tag: v1.4.3-rc1~240 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78b713a1d0909c8eb8dc0bad5df624c33d065c16;p=git.git Make sha1flush void and remove conditional return. Signed-off-by: David Rientjes Signed-off-by: Junio C Hamano --- diff --git a/csum-file.c b/csum-file.c index 6a7b40fd0..e2278897d 100644 --- a/csum-file.c +++ b/csum-file.c @@ -10,7 +10,7 @@ #include "cache.h" #include "csum-file.h" -static int sha1flush(struct sha1file *f, unsigned int count) +static void sha1flush(struct sha1file *f, unsigned int count) { void *buf = f->buffer; @@ -21,7 +21,7 @@ static int sha1flush(struct sha1file *f, unsigned int count) count -= ret; if (count) continue; - return 0; + return; } if (!ret) die("sha1 file '%s' write error. Out of diskspace", f->name);