]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: dwmac-loongson: Fix unsigned comparison to zero
authorYueHaibing <yuehaibing@huawei.com>
Wed, 7 Jul 2021 07:50:57 +0000 (15:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jul 2021 20:43:16 +0000 (13:43 -0700)
commit8b700aa3abfd94fe50dd3b494726d3ef6911e1bd
treef5d8fe699542b9bb289e37692968ed488c00cdd4
parent202cd2a6d52369788080fa4345b21903233aa5a7
stmmac: dwmac-loongson: Fix unsigned comparison to zero

plat->phy_interface is unsigned integer, so the condition
can't be less than zero and the warning will never printed.

Fixes: 9ae87bd74be6 ("stmmac: pci: Add dwmac support for Loongson")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c