diff options
author | Jacky Chou <jacky_chou@aspeedtech.com> | 2024-02-05 16:02:28 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-03-26 19:58:26 -0400 |
commit | 60d77b6f91f08d3be3b03d188c30c9b47e800a62 (patch) | |
tree | 2e732b042bd6c48a48fc1a6474d3e98ab4ca77e9 /drivers/net/phy | |
parent | 0eedd1e5643ad3247c4cf5b6f6a172c3decb79f3 (diff) | |
download | u-boot-60d77b6f91f08d3be3b03d188c30c9b47e800a62.zip u-boot-60d77b6f91f08d3be3b03d188c30c9b47e800a62.tar.gz u-boot-60d77b6f91f08d3be3b03d188c30c9b47e800a62.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/ncsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c index 9689385..f9069c3 100644 --- a/drivers/net/phy/ncsi.c +++ b/drivers/net/phy/ncsi.c @@ -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, sizeof(*hdr) + len); pchecksum = (__be32 *)((void *)(hdr + 1) + len); - put_unaligned_be32(htonl(checksum), pchecksum); + put_unaligned_be32(checksum, pchecksum); if (wait) { net_set_timeout_handler(1000UL, ncsi_timeout_handler); |