Skip to content
Commit 10f0d2ab authored by Wan Jiabing's avatar Wan Jiabing Committed by Guenter Roeck
Browse files

hwmon: (nct7802) Add of_node_put() before return



Fix following coccicheck warning:
./drivers/hwmon/nct7802.c:1152:2-24: 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: default avatarWan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20211029024918.5161-1-wanjiabing@vivo.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 38d9f06c
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