summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <funfunctor@folklore1984.net>2016-07-12 02:17:53 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-07-29 20:36:48 +0200
commit004e29ccf034ea1fb08e77b76106891bb88fae6f (patch)
tree4d1101e968575e819c94c465ff2c3f09a9f2ea55 /drivers/gpu/drm/amd/amdgpu/cik.c
parentdrivers/amdgpu: Use 'true/false' for bool typed variables (diff)
downloadlinux-004e29ccf034ea1fb08e77b76106891bb88fae6f.tar.xz
linux-004e29ccf034ea1fb08e77b76106891bb88fae6f.zip
drivers/amdgpu: Use canonical form in branch predicates
Found-by: Coccinelle Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/cik.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c
index a7de4d18ac94..4efc901f658c 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik.c
@@ -879,7 +879,7 @@ static void cik_vga_set_state(struct amdgpu_device *adev, bool state)
uint32_t tmp;
tmp = RREG32(mmCONFIG_CNTL);
- if (state == false)
+ if (!state)
tmp |= CONFIG_CNTL__VGA_DIS_MASK;
else
tmp &= ~CONFIG_CNTL__VGA_DIS_MASK;