summaryrefslogtreecommitdiff
path: root/drivers/w1
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2023-10-06 13:08:43 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-10-12 11:12:54 +0300
commitb925fb423d3c9aa5cf24bd5e4953649fcf271245 (patch)
tree1baadcc9c87b51a4d70d7276d355c34d5677c547 /drivers/w1
parentd13fabf08d7cf4439d8f2f477458c7c353aebe87 (diff)
downloadlinux-b925fb423d3c9aa5cf24bd5e4953649fcf271245.tar.xz
media: i2c: adp1653: don't reuse the same node pointer
The child device_node pointer was used for two different children. This confused smatch, causing this warning: drivers/media/i2c/adp1653.c:444 adp1653_of_init() warn: missing unwind goto? Use two different pointers, one for each child node, and add separate goto labels for each node as well. This also improves error logging since it will now state for which node the property was missing. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> [hverkuil: fix typo: childs -> children]
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions