Author: jhb
Date: Thu Apr  2 16:55:28 2020
New Revision: 359569
URL: https://svnweb.freebsd.org/changeset/base/359569

Log:
  Remove duplicate conditional.
  
  CID:          1422192
  Reported by:  Coverity

Modified:
  head/sys/opencrypto/crypto.c

Modified: head/sys/opencrypto/crypto.c
==============================================================================
--- head/sys/opencrypto/crypto.c        Thu Apr  2 16:48:46 2020        
(r359568)
+++ head/sys/opencrypto/crypto.c        Thu Apr  2 16:55:28 2020        
(r359569)
@@ -722,8 +722,6 @@ alg_is_digest(int alg)
                return (true);
        if (alg >= CRYPTO_SHA2_256_HMAC && alg <= CRYPTO_SHA2_512_HMAC)
                return (true);
-       if (alg >= CRYPTO_SHA2_256_HMAC && alg <= CRYPTO_SHA2_512_HMAC)
-               return (true);
        if (alg == CRYPTO_AES_NIST_GMAC)
                return (true);
        if (alg >= CRYPTO_BLAKE2B && alg <= CRYPTO_BLAKE2S)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to