diff options
| author | Sui Jingfeng <[email protected]> | 2024-05-13 23:31:03 +0800 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2024-05-13 18:31:05 +0200 |
| commit | 41e6ed85e4575bba9d62fd03e9b555f9eaa2c241 (patch) | |
| tree | dc49ef0ed688d109f7d36dba9a117c2bc9defb2b /tools/perf/scripts/python/flamegraph.py | |
| parent | 8761a39e3f9d9f41a593af2fce1ba41537c35b83 (diff) | |
drm/bridge: adv7511: Remove a redundant check on existence of bridge->encoder
In the adv7511_connector_init() function, the check on the existence of
bridge->encoder is not necessary. As it has already been checked in the
drm_bridge_attach() which happens prior to the adv7511_bridge_attach()
get called. Also note that the adv7511_connector_init() is only called by
adv7511_bridge_attach(). Hence, it is guaranteed that the .encoder member
of the drm_bridge instance is not NULL when adv7511_connector_init() get
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/flamegraph.py')
0 files changed, 0 insertions, 0 deletions