mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(libT) remove another dead store reported by m1b & clang
This commit is contained in:
parent
17ca492cc5
commit
66db7d7b3f
1 changed files with 1 additions and 2 deletions
|
@ -250,7 +250,6 @@ recalculateHash( const tr_torrent * tor,
|
||||||
uint8_t * setme )
|
uint8_t * setme )
|
||||||
{
|
{
|
||||||
size_t bytesLeft;
|
size_t bytesLeft;
|
||||||
size_t n;
|
|
||||||
uint32_t offset = 0;
|
uint32_t offset = 0;
|
||||||
int success = TRUE;
|
int success = TRUE;
|
||||||
SHA_CTX sha;
|
SHA_CTX sha;
|
||||||
|
@ -260,7 +259,7 @@ recalculateHash( const tr_torrent * tor,
|
||||||
assert( pieceIndex < tor->info.pieceCount );
|
assert( pieceIndex < tor->info.pieceCount );
|
||||||
|
|
||||||
SHA1_Init( &sha );
|
SHA1_Init( &sha );
|
||||||
n = bytesLeft = tr_torPieceCountBytes( tor, pieceIndex );
|
bytesLeft = tr_torPieceCountBytes( tor, pieceIndex );
|
||||||
|
|
||||||
while( bytesLeft )
|
while( bytesLeft )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue