mailbox: mtk: add missing of_node_put before return
authorWang Qing <wangqing@vivo.com>
Wed, 12 Jan 2022 05:15:47 +0000 (23:15 -0600)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 12 Jan 2022 05:47:33 +0000 (23:47 -0600)
commitaf8d0f6d222d12ed7bba447e5eb277a5908b8968
treeed3480139c64fbaf2df5d6ab80410aeb58ee8fd4
parent2453128847ca1edbecbe33dbe063a04489d64842
mailbox: mtk: add missing of_node_put before return

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

Early exits from for_each_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/mtk-cmdq-mailbox.c