mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 02:06:44 +07:00
drm/amdgpu: squash lines for simple wrapper functions
Remove unneeded variables and assignments. Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/1473863952-7658-2-git-send-email-yamada.masahiro@socionext.com
This commit is contained in:
parent
ecebca79f6
commit
d912adef4d
@ -466,11 +466,7 @@ static int dce_virtual_suspend(void *handle)
|
||||
|
||||
static int dce_virtual_resume(void *handle)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = dce_virtual_hw_init(handle);
|
||||
|
||||
return ret;
|
||||
return dce_virtual_hw_init(handle);
|
||||
}
|
||||
|
||||
static bool dce_virtual_is_idle(void *handle)
|
||||
|
@ -190,12 +190,8 @@ static int sdma_v2_4_init_microcode(struct amdgpu_device *adev)
|
||||
*/
|
||||
static uint32_t sdma_v2_4_ring_get_rptr(struct amdgpu_ring *ring)
|
||||
{
|
||||
u32 rptr;
|
||||
|
||||
/* XXX check if swapping is necessary on BE */
|
||||
rptr = ring->adev->wb.wb[ring->rptr_offs] >> 2;
|
||||
|
||||
return rptr;
|
||||
return ring->adev->wb.wb[ring->rptr_offs] >> 2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -335,12 +335,8 @@ static int sdma_v3_0_init_microcode(struct amdgpu_device *adev)
|
||||
*/
|
||||
static uint32_t sdma_v3_0_ring_get_rptr(struct amdgpu_ring *ring)
|
||||
{
|
||||
u32 rptr;
|
||||
|
||||
/* XXX check if swapping is necessary on BE */
|
||||
rptr = ring->adev->wb.wb[ring->rptr_offs] >> 2;
|
||||
|
||||
return rptr;
|
||||
return ring->adev->wb.wb[ring->rptr_offs] >> 2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user