diff options
author | Wambui Karuga <wambui.karugax@gmail.com> | 2020-01-03 16:19:12 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-01-07 12:04:08 -0500 |
commit | fbd62354f08c33a87aace0a3ad2e21137cc331b8 (patch) | |
tree | 7f850f66e135aaea8d80a9977038220cc2e99cf4 /drivers/gpu/drm/radeon/radeon_display.c | |
parent | 2cacd20e91ecdc1a685fec2a796e8418f52db9c8 (diff) | |
download | lwn-fbd62354f08c33a87aace0a3ad2e21137cc331b8.tar.gz lwn-fbd62354f08c33a87aace0a3ad2e21137cc331b8.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 962575e27cde..856526cb2caf 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -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 { |