mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm: of: drm_of_find_panel_or_bridge: simplify error return paths
In prepataion to further modify the logic of this function, simplify the error-returning code. With this change, on any error there is an immediate 'return -<ERRNO>;' statement, without having to carry on the return value until the end. Additionally, clear both the panel and the bridge pointers at the beginning. Even though this is redundant in some code paths, it allows to have a simpler code in the rest of the function. Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://patch.msgid.link/20260814-drm-bridge-every-panel-v1-2-19cd5277cc8d@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
parent
5a859b820d
commit
97c594f71f
1 changed files with 11 additions and 14 deletions
Loading…
Add table
Add a link
Reference in a new issue