summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2.c
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-10-09 19:33:42 +0200
committerStefan Roese <sr@denx.de>2021-10-21 07:39:05 +0200
commit0034d84a66eaa51263a4881274b75de5b1c4f800 (patch)
tree8741bc20c286da2f2b9765ff3c4c9c617b18f487 /drivers/ddr/microchip/ddr2.c
parentf3c71e75b08b7cbe35acc29d89e90c05edd70d40 (diff)
arm: mvebu: turris_mox: Better check for valid ethernet addresses in env
Currently we overwrite ethaddr and eth1addr only if these variables don't exist. Better overwrite them even if the env variable exists, but is invalid - eth_env_get_enetaddr_by_index() checks for validity. Refactor the code to use a for cycle. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions