linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: aspeed: remove unneeded semicolon
@ 2020-11-01 15:06 trix
  2020-11-01 23:51 ` Joel Stanley
  0 siblings, 1 reply; 2+ messages in thread
From: trix @ 2020-11-01 15:06 UTC (permalink / raw)
  To: joel, andrew; +Cc: linux-arm-kernel, linux-aspeed, linux-kernel, Tom Rix

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(-)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] soc: aspeed: remove unneeded semicolon
  2020-11-01 15:06 [PATCH] soc: aspeed: remove unneeded semicolon trix
@ 2020-11-01 23:51 ` Joel Stanley
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Stanley @ 2020-11-01 23:51 UTC (permalink / raw)
  To: trix; +Cc: Andrew Jeffery, Linux ARM, linux-aspeed, Linux Kernel Mailing List

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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-01 23:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-01 15:06 [PATCH] soc: aspeed: remove unneeded semicolon trix
2020-11-01 23:51 ` Joel Stanley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).