]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch/crypto: Clean up useless assignment operations
authorYuli Wang <wangyuli@uniontech.com>
Tue, 19 Mar 2024 07:50:34 +0000 (15:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:36 +0000 (15:28 +0200)
commit7f1005dd39d2d2a44279a8fae4371373db49e459
tree9b0bf3e8155cf5a13b0899ee1a147258db72ec27
parentd7d7c6cdea875be3b241d7d39873bb431db7154d
LoongArch/crypto: Clean up useless assignment operations

[ Upstream commit fea1c949f6ca5059e12de00d0483645debc5b206 ]

The LoongArch CRC32 hw acceleration is based on arch/mips/crypto/
crc32-mips.c. While the MIPS code supports both MIPS32 and MIPS64,
but LoongArch32 lacks the CRC instruction. As a result, the line
"len -= sizeof(u32)" is unnecessary.

Removing it can make context code style more unified and improve
code readability.

Cc: stable@vger.kernel.org
Reviewed-by: WANG Xuerui <git@xen0n.name>
Suggested-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/loongarch/crypto/crc32-loongarch.c