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:

committed by
Junio C Hamano

parent
20b1d700c9
commit
139faba8f5
@ -94,7 +94,6 @@ static void write_blocked(void *buf, unsigned long size)
|
|||||||
}
|
}
|
||||||
if (size) {
|
if (size) {
|
||||||
memcpy(block + offset, buf, size);
|
memcpy(block + offset, buf, size);
|
||||||
buf += size;
|
|
||||||
offset += size;
|
offset += size;
|
||||||
}
|
}
|
||||||
tail = offset % RECORDSIZE;
|
tail = offset % RECORDSIZE;
|
||||||
|
Reference in New Issue
Block a user