aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/si.c
diff options
context:
space:
mode:
authorErnst Sjöstrand <ernstp@gmail.com>2019-06-24 17:15:39 +0200
committerAlex Deucher <alexander.deucher@amd.com>2019-06-25 13:23:24 -0500
commit0172591e219bca3bfc6cfde958fc1148d20173a4 (patch)
tree5f91f533771659373290f8a002a2ff3a17b4b85b /drivers/gpu/drm/amd/amdgpu/si.c
parentdrm/amdgpu/display: drop ifdefs around comments (diff)
downloadwireguard-linux-0172591e219bca3bfc6cfde958fc1148d20173a4.tar.xz
wireguard-linux-0172591e219bca3bfc6cfde958fc1148d20173a4.zip
drm/amd/amdgpu: Indent AMD_IS_APU properly
Reported by smatch: drivers/gpu/drm/amd/amdgpu/soc15.c:715 soc15_get_pcie_usage() warn: inconsistent indenting And a similar one in si.c. Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/si.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c
index 5e1a2528df7f..4d74453f3cfb 100644
--- a/drivers/gpu/drm/amd/amdgpu/si.c
+++ b/drivers/gpu/drm/amd/amdgpu/si.c
@@ -1340,8 +1340,8 @@ static void si_get_pcie_usage(struct amdgpu_device *adev, uint64_t *count0,
/* This reports 0 on APUs, so return to avoid writing/reading registers
* that may or may not be different from their GPU counterparts
*/
- if (adev->flags & AMD_IS_APU)
- return;
+ if (adev->flags & AMD_IS_APU)
+ return;
/* Set the 2 events that we wish to watch, defined above */
/* Reg 40 is # received msgs, Reg 104 is # of posted requests sent */