]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix a signedness bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 23 May 2017 05:13:45 +0000 (13:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 20:49:34 +0000 (16:49 -0400)
commitb1ee72f1d921ecda70970ae32d0beb5c2b846df0
tree7192b523b3b38d0680e2a70022dd0418445e832e
parent8200ec0be2b9524b9ce0153b867b01ceec70f100
drm/amd/powerplay: fix a signedness bugs

Smatch complains about a signedness bug here:

        vega10_hwmgr.c:4202 vega10_force_clock_level()
        warn: always true condition '(i >= 0) => (0-u32max >= 0)'

Fixes: 8a97ffffc5cd ("drm/amd/powerplay: fix bug sclk/mclk
                     level can't be set on vega10.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c