]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: pci: remove the duplicate code of set phy_mask
authorDejin Zheng <zhengdejin5@gmail.com>
Wed, 8 Jan 2020 13:56:49 +0000 (21:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2020 02:34:16 +0000 (18:34 -0800)
commitfecd3fcf3d4fb3d0ab0d9c06535667f3a0731fd5
tree47c6c67788af54451c881375027e5b03a91584fa
parent555371a6926b4888b135d4347a36bcf0e7bbb607
net: stmmac: pci: remove the duplicate code of set phy_mask

All members of mdio_bus_data are cleared to 0 when it was obtained
by devm_kzalloc(). so It doesn't need to set phy_mask as 0 again.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c