Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Remove unneeded variable 'ret' in navi10_ih.c

Fixes coccicheck warning:

drivers/gpu/drm/amd/amdgpu/navi10_ih.c:113:5-8: Unneeded variable: "ret". Return "0" on line 182

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ma Feng <mafeng.ma@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Ma Feng and committed by
Alex Deucher
7eca4006 e3c00faa

+1 -2
+1 -2
drivers/gpu/drm/amd/amdgpu/navi10_ih.c
··· 110 110 static int navi10_ih_irq_init(struct amdgpu_device *adev) 111 111 { 112 112 struct amdgpu_ih_ring *ih = &adev->irq.ih; 113 - int ret = 0; 114 113 u32 ih_rb_cntl, ih_doorbell_rtpr, ih_chicken; 115 114 u32 tmp; 116 115 ··· 178 179 /* enable interrupts */ 179 180 navi10_ih_enable_interrupts(adev); 180 181 181 - return ret; 182 + return 0; 182 183 } 183 184 184 185 /**