Remove useless pointer update
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 2 Apr 2006 11:12:47 +0000 (13:12 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 2 Apr 2006 19:58:45 +0000 (12:58 -0700)
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>
tar-tree.c

index 705b8fa..bd289a9 100644 (file)
@@ -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;