diff options
author | Hans Verkuil <[email protected]> | 2023-10-06 12:08:43 +0200 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2023-10-12 10:12:54 +0200 |
commit | b925fb423d3c9aa5cf24bd5e4953649fcf271245 (patch) | |
tree | 1baadcc9c87b51a4d70d7276d355c34d5677c547 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | d13fabf08d7cf4439d8f2f477458c7c353aebe87 (diff) |
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 <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
[hverkuil: fix typo: childs -> children]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions