diff options
author | Wambui Karuga <wambui.karugax@gmail.com> | 2020-01-03 14:19:12 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-01-07 18:04:08 +0100 |
commit | fbd62354f08c33a87aace0a3ad2e21137cc331b8 (patch) | |
tree | 7f850f66e135aaea8d80a9977038220cc2e99cf4 /drivers/gpu/drm/radeon/r100.c | |
parent | Revert "drm/amdgpu: Set no-retry as default." (diff) | |
download | linux-fbd62354f08c33a87aace0a3ad2e21137cc331b8.tar.xz linux-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/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 2c1166dc5a82..24c8db673931 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c @@ -2815,7 +2815,7 @@ void r100_vga_set_state(struct radeon_device *rdev, bool state) uint32_t temp; temp = RREG32(RADEON_CONFIG_CNTL); - if (state == false) { + if (!state) { temp &= ~RADEON_CFG_VGA_RAM_EN; temp |= RADEON_CFG_VGA_IO_DIS; } else { |