Skip to content

Commit

Permalink
Merge branch 'coverity_scan'
Browse files Browse the repository at this point in the history
  • Loading branch information
neusdan committed Feb 27, 2016
2 parents debaf6c + ab71ca8 commit 58b7866
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions grub-core/kern/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@ static int sha1_update(sha1_context *ctx, t_U8 *chunk_data, t_U32 chunk_length)
return -1;
}

// chunk_length =? 0
if ( chunk_length == 0 ) return -1;

// chunk_length = n * 64 byte + left
left = ctx->total_bytes_Lo & 0x3F;

Expand Down Expand Up @@ -332,7 +329,6 @@ static int sha1_finish(sha1_context *ctx, t_U32 *sha1_hash)
// parameter check
if ( (ctx == NULL) || (sha1_hash == NULL) )
{
*sha1_hash = 0;
return -1;
}

Expand Down

0 comments on commit 58b7866

Please sign in to comment.