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 unneeded variable

return value form directly instead of
taking this in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cm>
Signed-off-by: chiminghao <chi.minghao@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

chiminghao and committed by
Alex Deucher
47d9c6fa c08d2f8b

+3 -8
+1 -4
drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c
··· 37 37 long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) 38 38 { 39 39 unsigned int nr = DRM_IOCTL_NR(cmd); 40 - int ret; 41 40 42 41 if (nr < DRM_COMMAND_BASE) 43 42 return drm_compat_ioctl(filp, cmd, arg); 44 43 45 - ret = amdgpu_drm_ioctl(filp, cmd, arg); 46 - 47 - return ret; 44 + return amdgpu_drm_ioctl(filp, cmd, arg); 48 45 }
+2 -4
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
··· 1745 1745 { 1746 1746 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 1747 1747 bool value; 1748 - int r, i; 1748 + int i; 1749 1749 1750 1750 /* The sequence of these two function calls matters.*/ 1751 1751 gmc_v9_0_init_golden_registers(adev); ··· 1780 1780 if (adev->umc.funcs && adev->umc.funcs->init_registers) 1781 1781 adev->umc.funcs->init_registers(adev); 1782 1782 1783 - r = gmc_v9_0_gart_enable(adev); 1784 - 1785 - return r; 1783 + return gmc_v9_0_gart_enable(adev); 1786 1784 } 1787 1785 1788 1786 /**