Skip to contentSkip to conversation

soc: aspeed: remove unneeded semicolon

PATCH In review [email protected] 2 participants 2 messages Nov 1, 2020 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: aspeed: remove unneeded semicolon

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---
 drivers/soc/aspeed/aspeed-socinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/aspeed/aspeed-socinfo.c +1 -1
index 26db42ef6aae..20a1d4aeb051 100644
@@ -51,7 +51,7 @@ static const char *siliconid_to_rev(u32 siliconid)
 		return "A1";
 	case 3:
 		return "A2";
-	};
+	}
 
 	return "??";
 }
Signature · 1 line
2.18.1
maintainer
#1 lore raw
Quoted 4 lines · On Sun, 1 Nov 2020 at 15:06, <[email protected]> wrote:

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

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

Quoted 22 lines
---
 drivers/soc/aspeed/aspeed-socinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/aspeed/aspeed-socinfo.c +1 -2
index 26db42ef6aae..20a1d4aeb051 100644
@@ -51,7 +51,7 @@ static const char *siliconid_to_rev(u32 siliconid)
                return "A1";
        case 3:
                return "A2";
-       };
+       }
 
        return "??";
 }
--

2.18.1