summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2_regs.h
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2021-01-20 10:46:52 -0600
committerTom Rini <trini@konsulko.com>2021-02-17 19:46:43 -0500
commite4928270a4ab758ecfe54c9b296a00470fdee335 (patch)
treedeb27616ae4940b79a1248df4fe65608e599d90e /drivers/ddr/microchip/ddr2_regs.h
parent3dc2079733bba47ad1b72041010edab328bdcef6 (diff)
spl: fit: Remove useless loop in spl_fit_get_image_name()
When a desired configuration is not found, conf_node will have a negative value. Thus the for loop will start at the root "/" node of the image, print the "/description" property, and stop. It appears the intent of the loop was to print the names of the subnodes under "/configurations". We would need the offset to the "/configurations" node, which is abstracted by fit_find_config_node(). This change agrees that abstracting the node offset is the correct design, and we shouldn't be parsing the configurations manually. Thus the loop in spl_fit_get_image_name() is useless. Remove it. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/ddr/microchip/ddr2_regs.h')
0 files changed, 0 insertions, 0 deletions