Skip to content
Unverified Commit dbf641a1 authored by Wan Jiabing's avatar Wan Jiabing Committed by Mark Brown
Browse files

spi: orion: Add of_node_put() before goto



Fix following coccicheck warning:
./drivers/spi/spi-orion.c:738:1-33: WARNING: Function
for_each_available_child_of_node should have of_node_put() before goto

Early exits from for_each_available_child_of_node should decrement the
node reference counter.

Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20211015034008.6357-1-wanjiabing@vivo.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 531558b5
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