summaryrefslogtreecommitdiffstats
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorSui Jingfeng <sui.jingfeng@linux.dev>2024-05-13 23:30:58 +0800
committerRobert Foss <rfoss@kernel.org>2024-05-13 18:30:59 +0200
commitf0a83a2cf9eb99be74b81ff655b01b5a9710525d (patch)
tree60d7fd9afaa17a7b5628e00dd2cafcce57434244 /tools/lib/python/kdoc/python_version.py
parent2262e917b3da5c129086b035677291b2e3e4bab9 (diff)
downloadlinux-f0a83a2cf9eb99be74b81ff655b01b5a9710525d.tar.gz
linux-f0a83a2cf9eb99be74b81ff655b01b5a9710525d.zip
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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240513153109.46786-2-sui.jingfeng@linux.dev
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions