]> git.baikalelectronics.ru Git - uboot.git/commit
dm: error handling dev_get_dma_range()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 20 Feb 2021 09:41:22 +0000 (10:41 +0100)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:26 +0000 (19:23 +1300)
commitb315bf9e501fb0daeddcf0e2c7c38d5f91c9ced6
treed937da5b14f0f4305eae7b4b485c443e0929054c
parent5f244270f451047d4dbb558b8964712a80e8607f
dm: error handling dev_get_dma_range()

goto after return has not effect. Calling of_node_put() in case of some
errors and not for others is inconsistent.

Fixes: 5bd1f9e1beb ("dm: Introduce xxx_get_dma_range()")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/of_addr.c