Patch "LoongArch/crypto: Clean up useless assignment operations" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    LoongArch/crypto: Clean up useless assignment operations

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     loongarch-crypto-clean-up-useless-assignment-operati.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2c4f384b46c70799a32b232266122472c2f3f885
Author: Yuli Wang <wangyuli@xxxxxxxxxxxxx>
Date:   Tue Mar 19 15:50:34 2024 +0800

    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@xxxxxxxxxxxxxxx
    Reviewed-by: WANG Xuerui <git@xxxxxxxxxx>
    Suggested-by: Wentao Guan <guanwentao@xxxxxxxxxxxxx>
    Signed-off-by: Yuli Wang <wangyuli@xxxxxxxxxxxxx>
    Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/loongarch/crypto/crc32-loongarch.c b/arch/loongarch/crypto/crc32-loongarch.c
index a49e507af38c0..3eebea3a7b478 100644
--- a/arch/loongarch/crypto/crc32-loongarch.c
+++ b/arch/loongarch/crypto/crc32-loongarch.c
@@ -44,7 +44,6 @@ static u32 crc32_loongarch_hw(u32 crc_, const u8 *p, unsigned int len)
 
 		CRC32(crc, value, w);
 		p += sizeof(u32);
-		len -= sizeof(u32);
 	}
 
 	if (len & sizeof(u16)) {
@@ -80,7 +79,6 @@ static u32 crc32c_loongarch_hw(u32 crc_, const u8 *p, unsigned int len)
 
 		CRC32C(crc, value, w);
 		p += sizeof(u32);
-		len -= sizeof(u32);
 	}
 
 	if (len & sizeof(u16)) {




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux