Skip to content

Commit

Permalink
Remove useless pointer update
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rene Scharfe authored and Junio C Hamano committed Apr 2, 2006
1 parent 20b1d70 commit 139faba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tar-tree.c
Expand Up @@ -94,7 +94,6 @@ static void write_blocked(void *buf, unsigned long size)
}
if (size) {
memcpy(block + offset, buf, size);
buf += size;
offset += size;
}
tail = offset % RECORDSIZE;
Expand Down

0 comments on commit 139faba

Please sign in to comment.