OSDN Git Service

drm/radeon/si: Fix inconsistent indenting
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 15 Apr 2021 09:30:20 +0000 (17:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:45 +0000 (16:32 -0400)
Kernel test robot throws below warning ->

smatch warnings:
drivers/gpu/drm/radeon/si.c:4514 si_vm_packet3_cp_dma_check() warn:
inconsistent indenting

Fixed the inconsistent indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/si.c

index 88731b7..d0e94b1 100644 (file)
@@ -4511,7 +4511,7 @@ static int si_vm_packet3_cp_dma_check(u32 *ib, u32 idx)
                        } else {
                                for (i = 0; i < (command & 0x1fffff); i++) {
                                        reg = start_reg + (4 * i);
-                               if (!si_vm_reg_valid(reg)) {
+                                       if (!si_vm_reg_valid(reg)) {
                                                DRM_ERROR("CP DMA Bad DST register\n");
                                                return -EINVAL;
                                        }