diff mbox series

EDAC: aspeed: Remove unneeded semicolon

Message ID 1576648806-1114-1-git-send-email-vulab@iscas.ac.cn (mailing list archive)
State Mainlined
Commit a651c6c64431765c7a833e37dae5b135622bdf04
Headers show
Series EDAC: aspeed: Remove unneeded semicolon | expand

Commit Message

Xu Wang Dec. 18, 2019, 6 a.m. UTC
Remove unneeded semicolon reported by coccinelle.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 drivers/edac/aspeed_edac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Andrew Jeffery Dec. 18, 2019, 10:32 p.m. UTC | #1
On Wed, 18 Dec 2019, at 16:30, Xu Wang wrote:
> Remove unneeded semicolon reported by coccinelle.
> 
> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>

Acked-by: Andrew Jeffery <andrew@aj.id.au>
Borislav Petkov Dec. 19, 2019, 6:33 a.m. UTC | #2
On Wed, Dec 18, 2019 at 06:00:06AM +0000, Xu Wang wrote:
> Remove unneeded semicolon reported by coccinelle.
> 
> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
> ---
>  drivers/edac/aspeed_edac.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c
> index 09a9e3d..b194658b 100644
> --- a/drivers/edac/aspeed_edac.c
> +++ b/drivers/edac/aspeed_edac.c
> @@ -243,7 +243,7 @@ static int init_csrows(struct mem_ctl_info *mci)
>  	if (!np) {
>  		dev_err(mci->pdev, "dt: missing /memory node\n");
>  		return -ENODEV;
> -	};
> +	}
>  
>  	rc = of_address_to_resource(np, 0, &r);
>  
> @@ -252,7 +252,7 @@ static int init_csrows(struct mem_ctl_info *mci)
>  	if (rc) {
>  		dev_err(mci->pdev, "dt: failed requesting resource for /memory node\n");
>  		return rc;
> -	};
> +	}
>  
>  	dev_dbg(mci->pdev, "dt: /memory node resources: first page r.start=0x%x, resource_size=0x%x, PAGE_SHIFT macro=0x%x\n",
>  		r.start, resource_size(&r), PAGE_SHIFT);
> -- 

Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c
index 09a9e3d..b194658b 100644
--- a/drivers/edac/aspeed_edac.c
+++ b/drivers/edac/aspeed_edac.c
@@ -243,7 +243,7 @@  static int init_csrows(struct mem_ctl_info *mci)
 	if (!np) {
 		dev_err(mci->pdev, "dt: missing /memory node\n");
 		return -ENODEV;
-	};
+	}
 
 	rc = of_address_to_resource(np, 0, &r);
 
@@ -252,7 +252,7 @@  static int init_csrows(struct mem_ctl_info *mci)
 	if (rc) {
 		dev_err(mci->pdev, "dt: failed requesting resource for /memory node\n");
 		return rc;
-	};
+	}
 
 	dev_dbg(mci->pdev, "dt: /memory node resources: first page r.start=0x%x, resource_size=0x%x, PAGE_SHIFT macro=0x%x\n",
 		r.start, resource_size(&r), PAGE_SHIFT);