diff mbox series

soc: aspeed: remove unneeded semicolon

Message ID 20201101150622.2288203-1-trix@redhat.com
State New
Headers show
Series soc: aspeed: remove unneeded semicolon | expand

Commit Message

Tom Rix Nov. 1, 2020, 3:06 p.m. UTC
From: Tom Rix <trix@redhat.com>

A semicolon is not needed after a switch statement.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/soc/aspeed/aspeed-socinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joel Stanley Nov. 1, 2020, 11:51 p.m. UTC | #1
On Sun, 1 Nov 2020 at 15:06, <trix@redhat.com> wrote:
>
> From: Tom Rix <trix@redhat.com>
>
> A semicolon is not needed after a switch statement.

Thanks Tom. I will add this to the aspeed soc tree.

>
> Signed-off-by: Tom Rix <trix@redhat.com>
> ---
>  drivers/soc/aspeed/aspeed-socinfo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/aspeed/aspeed-socinfo.c b/drivers/soc/aspeed/aspeed-socinfo.c
> index 26db42ef6aae..20a1d4aeb051 100644
> --- a/drivers/soc/aspeed/aspeed-socinfo.c
> +++ b/drivers/soc/aspeed/aspeed-socinfo.c
> @@ -51,7 +51,7 @@ static const char *siliconid_to_rev(u32 siliconid)
>                 return "A1";
>         case 3:
>                 return "A2";
> -       };
> +       }
>
>         return "??";
>  }
> --
> 2.18.1
>
diff mbox series

Patch

diff --git a/drivers/soc/aspeed/aspeed-socinfo.c b/drivers/soc/aspeed/aspeed-socinfo.c
index 26db42ef6aae..20a1d4aeb051 100644
--- a/drivers/soc/aspeed/aspeed-socinfo.c
+++ b/drivers/soc/aspeed/aspeed-socinfo.c
@@ -51,7 +51,7 @@  static const char *siliconid_to_rev(u32 siliconid)
 		return "A1";
 	case 3:
 		return "A2";
-	};
+	}
 
 	return "??";
 }