]> git.dujemihanovic.xyz Git - u-boot.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)
commitc803838fa85d681a0ea60409fc81f596a2e9c07c
treed937da5b14f0f4305eae7b4b485c443e0929054c
parent4a2a78ca5c2d70ff1e94a74ff2a96a440379dc01
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: 51bdb50904b ("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