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>
This commit is contained in:
parent
20b1d700c9
commit
139faba8f5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user