crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN
[linux-block.git] / drivers / crypto / qce / sha.c
index 95ab16fc8fd6b5180f1833a21e60ba06ced6d665..1ab62e7d5f3cbc726001dbbdd8e98e789e4943b1 100644 (file)
@@ -396,8 +396,6 @@ static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key,
        ahash_request_set_crypt(req, &sg, ctx->authkey, keylen);
 
        ret = crypto_wait_req(crypto_ahash_digest(req), &wait);
-       if (ret)
-               crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
 
        kfree(buf);
 err_free_req: