drm/nouveau/mmu: Remove unneeded semicolon
authorZheng Bin <zhengbin13@huawei.com>
Fri, 24 Apr 2020 07:36:01 +0000 (15:36 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:13:50 +0000 (11:13 +1000)
Fixes coccicheck warning:

drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h:307:2-3: Unneeded semicolon
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c:583:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h

index 41640e0584ac0fb02ede12b1c650267f8209d325..199f94e15c5f25c7fc48984d7e09b34c7570bc13 100644 (file)
@@ -580,7 +580,7 @@ nvkm_vmm_iter(struct nvkm_vmm *vmm, const struct nvkm_vmm_page *page,
                                it.pte[it.lvl]++;
                        }
                }
-       };
+       }
 
        nvkm_vmm_flush(&it);
        return ~0ULL;
index 5e55ecbd8005558d0319d3b84457e55be78d0bc4..d3f8f916d0dbcc815db973dc0785fc8e62b17429 100644 (file)
@@ -304,7 +304,7 @@ int tu102_vmm_new(struct nvkm_mmu *, bool, u64, u64, void *, u32,
                FILL(VMM, PT, PTEI, _ptes, MAP, _addr);                        \
                PTEI += _ptes;                                                 \
                PTEN -= _ptes;                                                 \
-       };                                                                     \
+       }                                                                      \
        nvkm_done((PT)->memory);                                               \
 } while(0)