Remove useless pointer update
buf is not used afterwards. The compiler optimized the dead store out anyway, but let's clean the source, too. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Rene Scharfe committed
Apr 2, 2006 at 13:12 UTC
139faba8f5c86a960c893f92e25afd4caa79c2fb
1 file changed
-1
tar-tree.c
-1
@@ -94,7 +94,6 @@ static void write_blocked(void *buf, unsigned long size)
94
}
95
if (size) {
96
memcpy(block + offset, buf, size);
97
- buf += size;
97
offset += size;
98
}
99
tail = offset % RECORDSIZE;