mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-08 23:08:37 +00:00
drm/amdgpu: Remove the unneeded result variable
Return the sdma_v6_0_start() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: zhang songyi <zhang.songyi@zte.com.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d4242216dd
commit
79c0d7ddcb
@ -1377,12 +1377,9 @@ static int sdma_v6_0_sw_fini(void *handle)
|
|||||||
|
|
||||||
static int sdma_v6_0_hw_init(void *handle)
|
static int sdma_v6_0_hw_init(void *handle)
|
||||||
{
|
{
|
||||||
int r;
|
|
||||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||||
|
|
||||||
r = sdma_v6_0_start(adev);
|
return sdma_v6_0_start(adev);
|
||||||
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sdma_v6_0_hw_fini(void *handle)
|
static int sdma_v6_0_hw_fini(void *handle)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user