linux-stable/arch/loongarch
Yuli Wang 7f1005dd39 LoongArch/crypto: Clean up useless assignment operations
[ Upstream commit fea1c949f6 ]

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>
2024-04-03 15:28:36 +02:00
..
boot
configs LoongArch: Update Loongson-3 default config file 2023-09-07 12:06:20 +08:00
crypto LoongArch/crypto: Clean up useless assignment operations 2024-04-03 15:28:36 +02:00
include LoongArch: Define the __io_aw() hook as mmiowb() 2024-04-03 15:28:36 +02:00
kernel LoongArch: Update cpu_sibling_map when disabling nonboot CPUs 2024-03-01 13:34:58 +01:00
lib LoongArch: Add KASAN (Kernel Address Sanitizer) support 2023-09-06 22:54:16 +08:00
mm LoongArch: Fix earlycon parameter if KASAN enabled 2024-02-23 09:25:16 +01:00
net LoongArch: BPF: Prevent out-of-bounds memory access 2024-01-25 15:35:58 -08:00
pci
power
vdso LoongArch: vDSO: Disable UBSAN instrumentation 2024-03-01 13:34:55 +01:00
Kbuild
Kconfig LoongArch: Select HAVE_ARCH_SECCOMP to use the common SECCOMP menu 2024-03-01 13:34:55 +01:00
Kconfig.debug
Makefile LoongArch: Apply dynamic relocations for LLD 2024-01-20 11:51:42 +01:00