Merge tag 'gfs2-for-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux...
[linux-2.6-microblaze.git] / crypto / ghash-generic.c
index 5027b34..c70d163 100644 (file)
@@ -58,10 +58,8 @@ static int ghash_setkey(struct crypto_shash *tfm,
        struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
        be128 k;
 
-       if (keylen != GHASH_BLOCK_SIZE) {
-               crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
+       if (keylen != GHASH_BLOCK_SIZE)
                return -EINVAL;
-       }
 
        if (ctx->gf128)
                gf128mul_free_4k(ctx->gf128);