Skip to content
Commit 39fbca8d authored by Dan Carpenter's avatar Dan Carpenter Committed by Yongxin Liu
Browse files

stmmac: dwmac-loongson: fix uninitialized variable in loongson_dwmac_probe()

commit b0e03950 upstream.

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

Fixes: 30bba69d

 ("stmmac: pci: Add dwmac support for Loongson")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarYongxin Liu <yongxin.liu@windriver.com>
parent 56a16f00
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment