]> 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)
commit44d55dacafcf4f1fb656f6ce5b7ee53bd5db7ae6
treef5d8fe699542b9bb289e37692968ed488c00cdd4
parent5ff89b510dac4c8c45bd96965aaedbe5dfddb4bd
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: 8faa7848cdb4 ("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