crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN
[linux-block.git] / drivers / crypto / ux500 / cryp / cryp_core.c
index 95fb694a26674b02c92cac47197164335c325bf8..800dfc4d16c4d529a28191f2a69cb25869cfc462 100644 (file)
@@ -951,7 +951,6 @@ static int aes_skcipher_setkey(struct crypto_skcipher *cipher,
                                 const u8 *key, unsigned int keylen)
 {
        struct cryp_ctx *ctx = crypto_skcipher_ctx(cipher);
-       u32 *flags = &cipher->base.crt_flags;
 
        pr_debug(DEV_DBG_NAME " [%s]", __func__);
 
@@ -970,7 +969,6 @@ static int aes_skcipher_setkey(struct crypto_skcipher *cipher,
 
        default:
                pr_err(DEV_DBG_NAME "[%s]: Unknown keylen!", __func__);
-               *flags |= CRYPTO_TFM_RES_BAD_KEY_LEN;
                return -EINVAL;
        }