diff options
author | Rob Herring (Arm) <robh@kernel.org> | 2024-07-31 14:13:57 -0600 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2024-08-06 16:29:04 -0500 |
commit | 8737e167dc55cc00c5818b408f47ba03b6ddb25b (patch) | |
tree | d4586276edfd57c53222e7dc1d4adffe19909296 /tools/perf/scripts/python/stackcollapse.py | |
parent | d9483b44c94eba6fa7451caf27cc7e993c8cc568 (diff) |
soc: ti: knav: Drop unnecessary check for property presence
of_property_read_u32() returns -EINVAL if a property is not present, so
the preceding check for presence with of_get_property() can be
dropped.
This is part of a larger effort to remove callers of of_get_property()
and similar functions. of_get_property() leaks the DT struct property
and data pointers which is a problem for dynamically allocated nodes
which may be freed.
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240731201407.1838385-2-robh@kernel.org
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions