summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <funfunctor@folklore1984.net>2016-07-12 10:17:56 +1000
committerAlex Deucher <alexander.deucher@amd.com>2016-07-29 14:36:50 -0400
commit4ba27f9ba993cdcb3637d9fedc61a121a5eb2387 (patch)
tree0aed22378df0b1440eb44d1933e8f856a0bf1f7e /drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
parent5969a8c76bc2d9b6348ab9e1cb02307805e94330 (diff)
downloadop-kernel-dev-4ba27f9ba993cdcb3637d9fedc61a121a5eb2387.zip
op-kernel-dev-4ba27f9ba993cdcb3637d9fedc61a121a5eb2387.tar.gz
drivers/amdgpu: Use canonical boolean form in various predicates
V.2: Fixup by hand to remove a few instances of redundant '()' left over. 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/powerplay/hwmgr/pp_acpi.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
index a3c38bb..1944d28 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_acpi.c
@@ -66,7 +66,7 @@ int acpi_pcie_perf_request(void *device, uint8_t perf_req, bool advertise)
int result;
struct cgs_system_info info = {0};
- if( 0 != acpi_atcs_notify_pcie_device_ready(device))
+ if (acpi_atcs_notify_pcie_device_ready(device))
return -EINVAL;
info.size = sizeof(struct cgs_system_info);
OpenPOWER on IntegriCloud