forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
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 }