diff options
| author | WangYuli <[email protected]> | 2024-09-06 06:40:02 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2024-09-13 10:26:52 +0000 |
| commit | ca459e5f826f262f044bda85ede8460af7f4bec9 (patch) | |
| tree | 2fc327d74b8fe32e69ce3e769c86861f0484f73a /lib/crypto/mpi/mpi-mul.c | |
| parent | crypto: qcom-rng - rename *_of_data to *_match_data (diff) | |
| download | kernel-ca459e5f826f262f044bda85ede8460af7f4bec9.tar.gz kernel-ca459e5f826f262f044bda85ede8460af7f4bec9.zip | |
crypto: mips/crc32 - Clean up useless assignment operations
When entering the "len & sizeof(u32)" branch, len must be less than 8.
So after one operation, len must be less than 4.
At this time, "len -= sizeof(u32)" is not necessary for 64-bit CPUs.
After that, replace `while' loops with equivalent `for' to make the
code structure a little bit better by the way.
Suggested-by: Maciej W. Rozycki <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Suggested-by: Herbert Xu <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Guan Wentao <[email protected]>
Signed-off-by: WangYuli <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
