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:

committed by
Alex Deucher

parent
2cacd20e91
commit
fbd62354f0
@@ -847,11 +847,11 @@ static bool radeon_setup_enc_conn(struct drm_device *dev)
|
||||
if (rdev->bios) {
|
||||
if (rdev->is_atom_bios) {
|
||||
ret = radeon_get_atom_connector_info_from_supported_devices_table(dev);
|
||||
if (ret == false)
|
||||
if (!ret)
|
||||
ret = radeon_get_atom_connector_info_from_object_table(dev);
|
||||
} else {
|
||||
ret = radeon_get_legacy_connector_info_from_bios(dev);
|
||||
if (ret == false)
|
||||
if (!ret)
|
||||
ret = radeon_get_legacy_connector_info_from_table(dev);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user