OSDN Git Service

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)
commitb0e03950dd71315204c24a3dffb2d9fc477e82de
treea534baf4292668732f426ea8fad7d02cadad98b9
parenta4bdf76f54e142a5d54189f2c81b69095bf347ff
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: 30bba69d7db4 ("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