[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/5] contrib: Open brace '{' following struct go on the same l
From: |
zhouyang |
Subject: |
[PATCH v2 5/5] contrib: Open brace '{' following struct go on the same line |
Date: |
Wed, 9 Dec 2020 11:04:47 +0800 |
I found some style problems whil check the code using checkpatch.pl.
This commit fixs the issue below:
ERROR: that open brace { should be on the previous line
Signed-off-by: zhouyang <zhouyang789@huawei.com>
---
contrib/plugins/howvec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/contrib/plugins/howvec.c b/contrib/plugins/howvec.c
index 9d6fa33297..600f7facc1 100644
--- a/contrib/plugins/howvec.c
+++ b/contrib/plugins/howvec.c
@@ -145,8 +145,7 @@ typedef struct {
int table_sz;
} ClassSelector;
-static ClassSelector class_tables[] =
-{
+static ClassSelector class_tables[] = {
{ "aarch64", aarch64_insn_classes, ARRAY_SIZE(aarch64_insn_classes) },
{ "sparc", sparc32_insn_classes, ARRAY_SIZE(sparc32_insn_classes) },
{ "sparc64", sparc64_insn_classes, ARRAY_SIZE(sparc64_insn_classes) },
--
2.23.0
- [PATCH v2 0/5] Fix some style problems in contrib, zhouyang, 2020/12/08
- [PATCH v2 2/5] contrib: Fix some code style problems, ERROR: "foo * bar" should be "foo *bar", zhouyang, 2020/12/08
- [PATCH v2 4/5] contrib: space required after that ',', zhouyang, 2020/12/08
- [PATCH v2 1/5] contrib: Don't use '#' flag of printf format, zhouyang, 2020/12/08
- [PATCH v2 5/5] contrib: Open brace '{' following struct go on the same line,
zhouyang <=
- [PATCH v2 3/5] contrib: Add spaces around operator, zhouyang, 2020/12/08