Merge git://ozlabs.org/~paulus/gitk
[gitweb.git] / pack-write.c
index ddc174e1adb9e1545b2815d8a1990e43f6fa2bfb..605d01b25cbd9d796810f8aa810894a2c198da28 100644 (file)
@@ -183,8 +183,7 @@ off_t write_pack_header(struct sha1file *f, uint32_t nr_entries)
        hdr.hdr_signature = htonl(PACK_SIGNATURE);
        hdr.hdr_version = htonl(PACK_VERSION);
        hdr.hdr_entries = htonl(nr_entries);
-       if (sha1write(f, &hdr, sizeof(hdr)))
-               return 0;
+       sha1write(f, &hdr, sizeof(hdr));
        return sizeof(hdr);
 }