crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN
[linux-block.git] / drivers / crypto / ccp / ccp-crypto-aes.c
index 33328a153225ebf6769d7f836242313153392390..51e12fbd11592417e7842965a26867a4217ee9d7 100644 (file)
@@ -51,7 +51,6 @@ static int ccp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
                ctx->u.aes.type = CCP_AES_TYPE_256;
                break;
        default:
-               crypto_skcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
                return -EINVAL;
        }
        ctx->u.aes.mode = alg->mode;