drm/radeon: remove boolean checks in if statements.

Remove unnecessary variable comparisions to true/false in if statements
and check the value of the variable directly.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Wambui Karuga 2020-01-03 16:19:12 +03:00 committed by Alex Deucher
parent 2cacd20e91
commit fbd62354f0
8 changed files with 16 additions and 16 deletions

View file

@ -1712,7 +1712,7 @@ static struct radeon_encoder_int_tmds *radeon_legacy_get_tmds_info(struct radeon
else
ret = radeon_legacy_get_tmds_info_from_combios(encoder, tmds);
if (ret == false)
if (!ret)
radeon_legacy_get_tmds_info_from_table(encoder, tmds);
return tmds;
@ -1735,7 +1735,7 @@ static struct radeon_encoder_ext_tmds *radeon_legacy_get_ext_tmds_info(struct ra
ret = radeon_legacy_get_ext_tmds_info_from_combios(encoder, tmds);
if (ret == false)
if (!ret)
radeon_legacy_get_ext_tmds_info_from_table(encoder, tmds);
return tmds;