From 0f38e6a877f19db303672ca899b36333fb84c8fa Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 28 Jan 2022 13:24:49 +0100 Subject: cipher: Remove dead code in for the siv mode * cipher/cipher-siv.c (_gcry_cipher_siv_setkey): Remove dead code -- Signed-off-by: Jakub Jelen --- cipher/cipher-siv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cipher/cipher-siv.c b/cipher/cipher-siv.c index 11f25340..160beb48 100644 --- a/cipher/cipher-siv.c +++ b/cipher/cipher-siv.c @@ -97,8 +97,6 @@ _gcry_cipher_siv_setkey (gcry_cipher_hd_t c, GCRY_SIV_BLOCK_LEN); memcpy (c->u_mode.siv.s2v_d, c->u_mode.siv.s2v_zero_block, GCRY_SIV_BLOCK_LEN); - if (err != 0) - return err; return 0; } -- cgit v1.2.1