drm/amdgpu: Fix unintended error log in VCN5_0_0

The error log is supposed to be gaurded under if failure condition.

Fixes: faab5ea083 ("drm/amdgpu: Check vcn sram load return value")
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Sathishkumar S
2025-07-28 18:27:06 +05:30
committed by Alex Deucher
parent 35222b5934
commit 46b0e6b9d7

View File

@@ -769,9 +769,10 @@ static int vcn_v5_0_0_start_dpg_mode(struct amdgpu_vcn_inst *vinst,
if (indirect) {
ret = amdgpu_vcn_psp_update_sram(adev, inst_idx, 0);
dev_err(adev->dev, "%s: vcn sram load failed %d\n", __func__, ret);
if (ret)
if (ret) {
dev_err(adev->dev, "%s: vcn sram load failed %d\n", __func__, ret);
return ret;
}
}
ring = &adev->vcn.inst[inst_idx].ring_enc[0];