]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - crypto/michael_mic.c
Merge tag 'riscv-for-linus-5.6-mw0' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / crypto / michael_mic.c
index 20e6220f46f6a3420e7e108b78fb6cfab9dd536d..63350c4ad461700d3bf9a64993925e09511f25c6 100644 (file)
@@ -137,10 +137,8 @@ static int michael_setkey(struct crypto_shash *tfm, const u8 *key,
 
        const __le32 *data = (const __le32 *)key;
 
-       if (keylen != 8) {
-               crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
+       if (keylen != 8)
                return -EINVAL;
-       }
 
        mctx->l = le32_to_cpu(data[0]);
        mctx->r = le32_to_cpu(data[1]);