зеркало из https://github.com/microsoft/git.git
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:
Родитель
20b1d700c9
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче