mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
drm/mst: delete unnecessary case in drm_dp_add_payload_part2()
[Why] There is no need to consider payload->delete case since we won't call drm_dp_add_payload_part2() to create a payload when we're about to remove it. [How] Delete unnecessary case to simplify the code. Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230807025639.1612361-2-Wayne.Lin@amd.com
This commit is contained in:
parent
fb0a84e6de
commit
ae4d2314ff
1 changed files with 2 additions and 6 deletions
|
@ -3411,12 +3411,8 @@ int drm_dp_add_payload_part2(struct drm_dp_mst_topology_mgr *mgr,
|
|||
|
||||
ret = drm_dp_create_payload_step2(mgr, payload);
|
||||
if (ret < 0) {
|
||||
if (!payload->delete)
|
||||
drm_err(mgr->dev, "Step 2 of creating MST payload for %p failed: %d\n",
|
||||
payload->port, ret);
|
||||
else
|
||||
drm_dbg_kms(mgr->dev, "Step 2 of removing MST payload for %p failed: %d\n",
|
||||
payload->port, ret);
|
||||
drm_err(mgr->dev, "Step 2 of creating MST payload for %p failed: %d\n",
|
||||
payload->port, ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue