net: txgbe: Fix unsigned comparison to zero in txgbe_calc_eeprom_checksum()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 5 Nov 2022 08:07:22 +0000 (16:07 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Nov 2022 04:00:10 +0000 (20:00 -0800)
commit5e2ea7801faccc011359db5ad6af5987b513f314
tree04153647c8d6da1c931285c6233a91fb1d555083
parenta068d33e542f5d5be2e5de3cf1122c4347d3e2af
net: txgbe: Fix unsigned comparison to zero in txgbe_calc_eeprom_checksum()

The error checks on checksum for a negative error return always fails because
it is unsigned and can never be negative.

Fixes: 049fe5365324 ("net: txgbe: Add operations to interact with firmware")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c