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

drm/amd/amdgpu : Remove unused variable

Remove unused variable 'ret', and directly return 0.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Muhammad Falak R Wani and committed by
Alex Deucher
0e2b854e d05f2c7a

+1 -2
+1 -2
drivers/gpu/drm/amd/amdgpu/cz_ih.c
··· 103 103 */ 104 104 static int cz_ih_irq_init(struct amdgpu_device *adev) 105 105 { 106 - int ret = 0; 107 106 int rb_bufsz; 108 107 u32 interrupt_cntl, ih_cntl, ih_rb_cntl; 109 108 u64 wptr_off; ··· 156 157 /* enable interrupts */ 157 158 cz_ih_enable_interrupts(adev); 158 159 159 - return ret; 160 + return 0; 160 161 } 161 162 162 163 /**