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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Remove the unneeded result variable 'r'

Return the value sdma_v4_0_start() directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

ye xingchen and committed by
Alex Deucher
91a95887 e7c69a27

+1 -4
+1 -4
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
··· 2002 2002 2003 2003 static int sdma_v4_0_hw_init(void *handle) 2004 2004 { 2005 - int r; 2006 2005 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 2007 2006 2008 2007 if (adev->flags & AMD_IS_APU) ··· 2010 2011 if (!amdgpu_sriov_vf(adev)) 2011 2012 sdma_v4_0_init_golden_registers(adev); 2012 2013 2013 - r = sdma_v4_0_start(adev); 2014 - 2015 - return r; 2014 + return sdma_v4_0_start(adev); 2016 2015 } 2017 2016 2018 2017 static int sdma_v4_0_hw_fini(void *handle)