diff options
author | Rob Herring (Arm) <[email protected]> | 2024-07-31 14:13:56 -0600 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2024-08-29 14:26:14 +0000 |
commit | 00335fc7cc7a8a39bff2fddd48be854b98c693ab (patch) | |
tree | 2b99e7bb0704c028729498d5dd82ab1410dfeddc /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 103b90752f3dda74abc56993390fa303147e7fbc (diff) |
drm/mediatek: 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_find_property() can be
dropped. Really, what the errno is shouldn't matter. Either the property
can be read and used or it can't and is ignored.
This is part of a larger effort to remove callers of of_find_property()
and similar functions. of_find_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) <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: CK Hu <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions