diff options
| author | yu kuai <[email protected]> | 2019-11-04 13:27:25 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-11-13 20:29:44 +0000 |
| commit | 220ac8d1444054ade07ce14498fcda266410f90e (patch) | |
| tree | 251ea35a383a11c383c719f4c54b2d4e5c7b190b /drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | |
| parent | drm/amdgpu: remove set but not used variable 'dig' (diff) | |
| download | kernel-220ac8d1444054ade07ce14498fcda266410f90e.tar.gz kernel-220ac8d1444054ade07ce14498fcda266410f90e.zip | |
drm/amdgpu: remove always false comparison in 'amdgpu_atombios_i2c_process_i2c_ch'
Fixes gcc '-Wtype-limits' warning:
drivers/gpu/drm/amd/amdgpu/atombios_i2c.c: In function
‘amdgpu_atombios_i2c_process_i2c_ch’:
drivers/gpu/drm/amd/amdgpu/atombios_i2c.c:79:11: warning: comparison is
always false due to limited range of data type [-Wtype-limits]
'num' is 'u8', so it will never be greater than 'TOM_MAX_HW_I2C_READ',
which is defined as 255. Therefore, the comparison can be removed.
Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)")
Signed-off-by: yu kuai <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c')
0 files changed, 0 insertions, 0 deletions
