Merge tag 'for-5.6/io_uring-vfs-2020-01-29' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / crypto / xxhash_generic.c
index 4aad2c0..55d1c8a 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;
 }