diff options
| author | Sui Jingfeng <[email protected]> | 2024-05-13 23:30:58 +0800 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2024-05-13 18:30:59 +0200 |
| commit | f0a83a2cf9eb99be74b81ff655b01b5a9710525d (patch) | |
| tree | 60d7fd9afaa17a7b5628e00dd2cafcce57434244 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 2262e917b3da5c129086b035677291b2e3e4bab9 (diff) | |
drm/bridge: simple-bridge: Remove a redundant check on existence of bridge->encoder
Because the existence of 'bridge->encoder' has already been checked before
the simple_bridge_attach() function get called, and 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 the simple_bridge_attach() 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/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions