]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: improve eth_platform_get_mac_address
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 31 May 2019 17:14:44 +0000 (19:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 01:11:57 +0000 (18:11 -0700)
commitfd7b844859fea73093ad166efe594aa4781ac0c3
tree464fc1b9b764fe37f7f15af89dea43db42c6c62e
parent50032e1f579381d40d3a201652e1abf3c17704bc
net: ethernet: improve eth_platform_get_mac_address

pci_device_to_OF_node(to_pci_dev(dev)) is the same as dev->of_node,
so we can simplify the code. In addition add an empty line before
the return statement.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethernet/eth.c