]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: dwmac-loongson: fix uninitialized variable in loongson_dwmac_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 22 Jun 2021 11:51:43 +0000 (14:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 17:44:50 +0000 (10:44 -0700)
commit886ef4e4af7b6d734db0744d1ebf814284af2b26
treea534baf4292668732f426ea8fad7d02cadad98b9
parent0401a1af3dc95f1b3498673afe00238270b7725e
stmmac: dwmac-loongson: fix uninitialized variable in loongson_dwmac_probe()

The "mdio" variable is never set to false.  Also it should be a bool
type instead of int.

Fixes: 8faa7848cdb4 ("stmmac: pci: Add dwmac support for Loongson")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c