diff options
| author | Sui Jingfeng <[email protected]> | 2024-05-13 23:31:01 +0800 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2024-05-13 18:31:03 +0200 |
| commit | a8f856bf054aeba9bb9c1a8b296c61711e9d76fb (patch) | |
| tree | 77ee622fdc051c61cd16a08cc44657075166077f /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 0f4bca4e1be3d1a725ac12a632950d7bb3d51e59 (diff) | |
drm/bridge: panel: Remove a redundant check on existence of bridge->encoder
Because the existence of 'bridge->encoder' has already been checked before
the panel_bridge_attach() function get called, and 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 panel_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/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions