diff options
| author | Sui Jingfeng <[email protected]> | 2024-05-13 23:31:02 +0800 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2024-05-13 18:31:04 +0200 |
| commit | 8761a39e3f9d9f41a593af2fce1ba41537c35b83 (patch) | |
| tree | b1ad39386a015c2e9ba8f9344a180790da90b054 /tools/perf/scripts/python | |
| parent | a8f856bf054aeba9bb9c1a8b296c61711e9d76fb (diff) | |
drm/bridge: it6505: Remove a redundant check on existence of bridge->encoder
In it6505_bridge_attach(), 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 it6505_bridge_attach() get called. Note that the
it6505_bridge_attach() will only be called by .attach() of the previous
bridge or KMS driver. The previous 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 it6505_bridge_attach() function 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')
0 files changed, 0 insertions, 0 deletions