drm/amd: Change `jpeg_v4_0_5_start_dpg_mode()` to void
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 15 Feb 2024 21:48:47 +0000 (15:48 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Feb 2024 20:44:30 +0000 (15:44 -0500)
commit2bb2ad58f6b711edb94fa43e5ac65323532fde95
tree90c9a45d169d56e0a492b92ce1b2124d02c9aee6
parentf6aed043ee5d75b3d1bfc452b1a9584b63c8f76b
drm/amd: Change `jpeg_v4_0_5_start_dpg_mode()` to void

jpeg_v4_0_5_start_dpg_mode() always returns 0 and the return value
doesn't get used in the caller jpeg_v4_0_5_start(). Modify the
function to be void.

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1583635 ("Code maintainability issues")
Fixes: 0a119d53f74a ("drm/amdgpu/jpeg: add support for jpeg DPG mode")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c