forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/mips/crypto/crc32-mips.c
....@@ -177,10 +177,8 @@
177177 {
178178 struct chksum_ctx *mctx = crypto_shash_ctx(tfm);
179179
180
- if (keylen != sizeof(mctx->key)) {
181
- crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
180
+ if (keylen != sizeof(mctx->key))
182181 return -EINVAL;
183
- }
184182 mctx->key = get_unaligned_le32(key);
185183 return 0;
186184 }