crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN
[linux-block.git] / arch / sparc / crypto / aes_glue.c
index 0f5a501c95a9a81d0e519b89c3639747fc76d24d..e3d2138ff9e294014d1e175297a1c6b5d8977fb5 100644 (file)
@@ -169,7 +169,6 @@ static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
                       unsigned int key_len)
 {
        struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm);
-       u32 *flags = &tfm->crt_flags;
 
        switch (key_len) {
        case AES_KEYSIZE_128:
@@ -188,7 +187,6 @@ static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
                break;
 
        default:
-               *flags |= CRYPTO_TFM_RES_BAD_KEY_LEN;
                return -EINVAL;
        }