From ab71ca8c18aec57eeb6afce209441377ac24a654 Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Sat, 27 Feb 2016 20:44:58 +0100 Subject: [PATCH] fix some coverity findings --- grub-core/kern/sha1.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/grub-core/kern/sha1.c b/grub-core/kern/sha1.c index 08cc0e391..bf1647cc9 100644 --- a/grub-core/kern/sha1.c +++ b/grub-core/kern/sha1.c @@ -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; @@ -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; }