diff options
| author | Sui Jingfeng <[email protected]> | 2024-05-13 23:31:09 +0800 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2024-05-13 18:31:14 +0200 |
| commit | 591255853a37b1c02afb046588b64e2a4cda484e (patch) | |
| tree | 8f2c2181e8b90ae2d5ae8226e8fe47eb93ef880a /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | ec74951a75070ab969943e438ead202beeec5134 (diff) | |
drm/bridge: analogix: Remove redundant checks on existence of bridge->encoder
The checks on the existence of bridge->encoder in the implementation of
drm_bridge_funcs::attach() is not necessary, as it has already been checked
in the drm_bridge_attach() function call by previous bridge or KMS driver.
The drm_bridge_attach() will quit with a negative error code returned if
it fails for some reasons, hence, it is guaranteed that the .encoder member
of the drm_bridge instance is not NULL when various bridge attach functions
are called.
Remove the redundant checking codes "if (!bridge->encoder) { ... }".
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Sui Jingfeng <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions