net: phy: ncsi: Correct the endian of the checksum

There is no need to perform the endian twice here.

Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
This commit is contained in:
Jacky Chou
2024-02-05 16:02:28 +08:00
committed by Tom Rini
parent 0eedd1e564
commit 60d77b6f91

View File

@@ -551,7 +551,7 @@ static int ncsi_send_command(unsigned int np, unsigned int nc, unsigned int cmd,
checksum = ncsi_calculate_checksum((unsigned char *)hdr, checksum = ncsi_calculate_checksum((unsigned char *)hdr,
sizeof(*hdr) + len); sizeof(*hdr) + len);
pchecksum = (__be32 *)((void *)(hdr + 1) + len); pchecksum = (__be32 *)((void *)(hdr + 1) + len);
put_unaligned_be32(htonl(checksum), pchecksum); put_unaligned_be32(checksum, pchecksum);
if (wait) { if (wait) {
net_set_timeout_handler(1000UL, ncsi_timeout_handler); net_set_timeout_handler(1000UL, ncsi_timeout_handler);