diff options
Diffstat (limited to 'target/linux/ipq40xx/files/drivers/net')
-rw-r--r-- | target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma_axi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma_axi.c b/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma_axi.c index af55ee4dd5..b5ca99598d 100644 --- a/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma_axi.c +++ b/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma_axi.c @@ -905,8 +905,6 @@ static int edma_axi_probe(struct platform_device *pdev) } for_each_available_child_of_node(np, pnp) { - const char *mac_addr; - /* this check is needed if parent and daughter dts have * different number of gmac nodes */ @@ -915,9 +913,7 @@ static int edma_axi_probe(struct platform_device *pdev) break; } - mac_addr = of_get_mac_address(pnp); - if (!IS_ERR(mac_addr)) - memcpy(edma_netdev[idx_mac]->dev_addr, mac_addr, ETH_ALEN); + of_get_mac_address(pnp, edma_netdev[idx_mac]->dev_addr); idx_mac++; } |