mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/amdgpu: simplify the return expression of vega10_ih_hw_init()
Simplify the return expression. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3f92a7d828
commit
38c1c73670
1 changed files with 1 additions and 6 deletions
|
@ -521,14 +521,9 @@ static int vega10_ih_sw_fini(void *handle)
|
|||
|
||||
static int vega10_ih_hw_init(void *handle)
|
||||
{
|
||||
int r;
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
|
||||
r = vega10_ih_irq_init(adev);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
return 0;
|
||||
return vega10_ih_irq_init(adev);
|
||||
}
|
||||
|
||||
static int vega10_ih_hw_fini(void *handle)
|
||||
|
|
Loading…
Add table
Reference in a new issue