mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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:
parent
2cacd20e91
commit
fbd62354f0
8 changed files with 16 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue