Skip to content
Snippets Groups Projects
Commit 66ae4d56 authored by Wan Jiabing's avatar Wan Jiabing Committed by Guenter Roeck
Browse files

hwmon: (tmp421) Add of_node_put() before return


Fix following coccicheck warning:
./drivers/hwmon/tmp421.c:416:1-23: 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/20211018121538.16482-1-wanjiabing@vivo.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent efb389b8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment