diff mbox series

[-next] coresight: core: Remove unneeded semicolon

Message ID 1603938348-53396-1-git-send-email-zou_wei@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] coresight: core: Remove unneeded semicolon | expand

Commit Message

Zou Wei Oct. 29, 2020, 2:25 a.m. UTC
Fixes coccicheck warning:

./drivers/hwtracing/coresight/coresight-core.c:421:4-5: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 drivers/hwtracing/coresight/coresight-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mathieu Poirier Oct. 29, 2020, 5:35 p.m. UTC | #1
Hi Wei,

On Thu, Oct 29, 2020 at 10:25:48AM +0800, Zou Wei wrote:
> Fixes coccicheck warning:
> 
> ./drivers/hwtracing/coresight/coresight-core.c:421:4-5: Unneeded semicolon
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Zou Wei <zou_wei@huawei.com>
> ---
>  drivers/hwtracing/coresight/coresight-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c
> index cc9e802..29c83ea 100644
> --- a/drivers/hwtracing/coresight/coresight-core.c
> +++ b/drivers/hwtracing/coresight/coresight-core.c
> @@ -418,7 +418,7 @@ static int coresight_enable_source(struct coresight_device *csdev, u32 mode)
>  			if (ret) {
>  				coresight_control_assoc_ectdev(csdev, false);
>  				return ret;
> -			};
> +			}

I picked up your patch.

Thanks,
Mathieu

>  		}
>  		csdev->enable = true;
>  	}
> -- 
> 2.6.2
>
diff mbox series

Patch

diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c
index cc9e802..29c83ea 100644
--- a/drivers/hwtracing/coresight/coresight-core.c
+++ b/drivers/hwtracing/coresight/coresight-core.c
@@ -418,7 +418,7 @@  static int coresight_enable_source(struct coresight_device *csdev, u32 mode)
 			if (ret) {
 				coresight_control_assoc_ectdev(csdev, false);
 				return ret;
-			};
+			}
 		}
 		csdev->enable = true;
 	}