]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - crypto/xxhash_generic.c
Merge tag 'iommu-updates-v5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[mirror_ubuntu-jammy-kernel.git] / crypto / xxhash_generic.c
index 4aad2c0f40a9f6a07e2f1382f3d529c0eb1758b5..55d1c8a761273e5d2a1a8897ee0c9971820a6957 100644 (file)
@@ -22,10 +22,8 @@ static int xxhash64_setkey(struct crypto_shash *tfm, const u8 *key,
 {
        struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(tfm);
 
-       if (keylen != sizeof(tctx->seed)) {
-               crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
+       if (keylen != sizeof(tctx->seed))
                return -EINVAL;
-       }
        tctx->seed = get_unaligned_le64(key);
        return 0;
 }