summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_training.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-08-24 15:00:40 +0300
committerRamon Fried <rfried.dev@gmail.com>2021-09-28 18:50:55 +0300
commit5eee5ab91638c4482dd59ff511feefd3b15a2472 (patch)
tree50d3b6425db68c3a5c923407238391b612f6c5f2 /drivers/ddr/marvell/a38x/ddr3_training.c
parentf4b712b840dd5fe0b984aadfe466c1886a31e906 (diff)
net: dsa: refactor the code to set the port MAC address into a dedicated function
This snippet of code has a bothering "if (...) return 0" in it which assumes it is the last piece of code running in dsa_port_probe(). This makes it difficult to add further code at the end of dsa_port_probe() which does not depend on MAC address stuff. So move the code to a dedicated function which returns void and let the code flow through. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Tested-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_training.c')
0 files changed, 0 insertions, 0 deletions