Re: [PATCH] drm/i915: Remove unneeded semicolon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2019.12.16 11:44:05 +0800, zhengbin wrote:
> 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@xxxxxxxxxx>
> Signed-off-by: zhengbin <zhengbin13@xxxxxxxxxx>
> ---
>  drivers/gpu/drm/i915/gem/i915_gem_region.c | 2 +-
>  drivers/gpu/drm/i915/gvt/gtt.c             | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_region.c b/drivers/gpu/drm/i915/gem/i915_gem_region.c
> index 2f7bcfb..d50adac 100644
> --- a/drivers/gpu/drm/i915/gem/i915_gem_region.c
> +++ b/drivers/gpu/drm/i915/gem/i915_gem_region.c
> @@ -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);
> diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c
> index 4b04af5..34cb404 100644
> --- a/drivers/gpu/drm/i915/gvt/gtt.c
> +++ b/drivers/gpu/drm/i915/gvt/gtt.c
> @@ -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,
> --
> 2.7.4
>

Thanks for catching.

Acked-by: Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx>

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827

Attachment: signature.asc
Description: PGP signature

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux