summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-08-22 05:02:19 +0000
committerjsg <jsg@openbsd.org>2020-08-22 05:02:19 +0000
commit02cc048f1933206105b58243d9cbdc18016b49bf (patch)
treea321147c9c9282a5f30882a904ec554b6d4762b2 /sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c
parentdrm/mipi: use dcs write for mipi_dsi_dcs_set_tear_scanline (diff)
downloadwireguard-openbsd-02cc048f1933206105b58243d9cbdc18016b49bf.tar.xz
wireguard-openbsd-02cc048f1933206105b58243d9cbdc18016b49bf.zip
drm/amdgpu: ensure 0 is returned for success in jpeg_v2_5_wait_for_idle
From Colin Ian King 251f7e2972a154e63d37b9423477309f68d4af9f in linux 5.7.y/5.7.16 57f01856645afe4c3d0f9915ee2bb043e8dd7982 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c b/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c
index 33cb7866bef..ab9314a74bb 100644
--- a/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c
+++ b/sys/dev/pci/drm/amd/amdgpu/jpeg_v2_5.c
@@ -462,7 +462,7 @@ static int jpeg_v2_5_wait_for_idle(void *handle)
return ret;
}
- return ret;
+ return 0;
}
static int jpeg_v2_5_set_clockgating_state(void *handle,