]> 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:11:30 +0000 (15:11 +0200)
commit610b8513a586d6f9a3722187258d0de6a86e7279
tree3607f4cb92ba531aaf0c11c55775cebd2ccf16d1
parent0b61a7dc6712b78799b3949997e8a5e94db5c4b0
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