Skip to content
Commit 85744f2d authored by Wan Jiabing's avatar Wan Jiabing Committed by Geert Uytterhoeven
Browse files

ARM: shmobile: rcar-gen2: Add missing of_node_put()



Fix following coccicheck warning:
./arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c:156:1-33: Function
for_each_matching_node_and_match should have of_node_put() before break
and goto.

Early exits from for_each_matching_node_and_match() should decrement the
node reference counter.

Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20211018014503.7598-1-wanjiabing@vivo.com


Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent fa55b7dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment