drm/radeon: remove comparison to bool
Am 06.05.2020 18:00 schrieb Alex Deucher <[email protected]>:
Quoted 16 lines · Zheng Bin
Zheng Bin (14):
drm/radeon: remove comparison to bool inbtc_dpm.cdrm/radeon: remove comparison to bool inci_dpm.cdrm/radeon: remove comparison to bool inni_dpm.cdrm/radeon: remove comparison to bool inradeon_atpx_handler.cdrm/radeon: remove comparison to bool inradeon_object.cdrm/radeon: remove comparison to bool inradeon_ttm.cdrm/radeon: remove comparison to bool inr100.cdrm/radeon: remove comparison to bool inr300.cdrm/radeon: remove comparison to bool inr600.cdrm/radeon: remove comparison to bool inrs600.cdrm/radeon: remove comparison to bool inrs690.cdrm/radeon: remove comparison to bool inrv6xx_dpm.cdrm/radeon: remove comparison to bool inrv515.cdrm/radeon: remove comparison to bool insi_dpm.c
Does the checker need to be fixed? All of these are comparing boolean variables to true/false. Seems like needless code churn to me.
We should probably make sure that no new code like this leaks in, but I also don't see that this is necessary for the old driver stack.
Christian.
Alex
Quoted 17 lines
drivers/gpu/drm/radeon/btc_dpm.c | 2 +- drivers/gpu/drm/radeon/ci_dpm.c | 4 ++-- drivers/gpu/drm/radeon/ni_dpm.c | 6 +++--- drivers/gpu/drm/radeon/r100.c | 2 +- drivers/gpu/drm/radeon/r300.c | 2 +- drivers/gpu/drm/radeon/r600.c | 3 ++- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 4 ++-- drivers/gpu/drm/radeon/radeon_object.c | 2 +- drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- drivers/gpu/drm/radeon/rs600.c | 2 +- drivers/gpu/drm/radeon/rs690.c | 3 ++- drivers/gpu/drm/radeon/rv515.c | 2 +- drivers/gpu/drm/radeon/rv6xx_dpm.c | 2 +- drivers/gpu/drm/radeon/si_dpm.c | 6 +++--- 14 files changed, 22 insertions(+), 20 deletions(-)
Quoted 7 lines
--
2.26.0.106.g9fadedd_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cchristian.koenig%40amd.com%7C10c2a90728574bb20ef208d7f1d69e2b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637243776401264275&sdata=Z6alCS8hPA7rWNKHimpkc6zBldtBagK0dGpX8mTOEZA%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx