drm/amd/amdgpu: Indent AMD_IS_APU properly
authorErnst Sjöstrand <ernstp@gmail.com>
Mon, 24 Jun 2019 15:15:39 +0000 (17:15 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:23:24 +0000 (13:23 -0500)
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>
drivers/gpu/drm/amd/amdgpu/si.c
drivers/gpu/drm/amd/amdgpu/soc15.c

index 5e1a2528df7f379c15117e680faec4783e40eadd..4d74453f3cfbd1b635155ca16a974b17910dca7c 100644 (file)
@@ -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 */
index 6ec9d1be422dbf5de6b652631e367e4b4f3871a9..87152d8ef0df8735522272bb324c4b0ae2b607e4 100644 (file)
@@ -713,8 +713,8 @@ static void soc15_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 */