drm/i915: Remove unneeded semicolon
authorzhengbin <zhengbin13@huawei.com>
Mon, 16 Dec 2019 03:44:05 +0000 (11:44 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Dec 2019 23:13:12 +0000 (23:13 +0000)
Fixes coccicheck warning:

drivers/gpu/drm/i915/gem/i915_gem_region.c:88:2-3: Unneeded semicolon
drivers/gpu/drm/i915/gvt/gtt.c:1285:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/1576467845-60920-1-git-send-email-zhengbin13@huawei.com
drivers/gpu/drm/i915/gem/i915_gem_region.c
drivers/gpu/drm/i915/gvt/gtt.c

index 2f7bcfb9c9647ac95a323cf87855c4599dc15a0f..d50adac122494c36a3567bcce52d0ac39c49883e 100644 (file)
@@ -85,7 +85,7 @@ i915_gem_object_get_pages_buddy(struct drm_i915_gem_object *obj)
                }
 
                prev_end = offset + block_size;
-       };
+       }
 
        sg_page_sizes |= sg->length;
        sg_mark_end(sg);
index 4b04af569c05c13df7cc4f6ca235abb0b281d025..34cb404ba4b789ca97c86794d90c24edf3cf95ef 100644 (file)
@@ -1282,7 +1282,7 @@ static int ppgtt_populate_shadow_entry(struct intel_vgpu *vgpu,
                return -EINVAL;
        default:
                GEM_BUG_ON(1);
-       };
+       }
 
        /* direct shadow */
        ret = intel_gvt_hypervisor_dma_map_guest_page(vgpu, gfn, page_size,