kernel/arch/mips/crypto/crc32-mips.c
.. .. @@ -177,10 +177,8 @@ 177 177 { 178 178 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); 179 179 180 - if (keylen != sizeof(mctx->key)) {181 - crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);180 + if (keylen != sizeof(mctx->key))182 181 return -EINVAL; 183 - }184 182 mctx->key = get_unaligned_le32(key); 185 183 return 0; 186 184 }