]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: zynq: add missing of_node_put before return
authorWang Qing <wangqing@vivo.com>
Mon, 13 Dec 2021 09:44:20 +0000 (01:44 -0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 12 Jan 2022 05:47:32 +0000 (23:47 -0600)
commitfc20c032b64c71288429cf345e6255f4fb515efb
tree853fccc3fafe00a99b6c9d2250add42c95230e4a
parentf7662c3e71a32f01e7273131384af35373d3709b
mailbox: zynq: add missing of_node_put before return

Fix following coccicheck warning:
WARNING: Function "for_each_available_child_of_node"
should have of_node_put() before return.

Early exits from for_each_available_child_of_node should decrement the
node reference counter.

Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/zynqmp-ipi-mailbox.c