Merge tag 'leds-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux...
[linux-2.6-microblaze.git] / crypto / michael_mic.c
index 20e6220..63350c4 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]);