[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/5] contrib: Fix some code style problems, ERROR: "foo * bar"
From: |
zhouyang |
Subject: |
[PATCH v2 2/5] contrib: Fix some code style problems, ERROR: "foo * bar" should be "foo *bar" |
Date: |
Wed, 9 Dec 2020 11:04:44 +0800 |
I am reading contrib related code and found some style problems while
check the code using checkpatch.pl. This commit fixs the issue below:
ERROR: "foo * bar" should be "foo *bar"
Signed-off-by: zhouyang <zhouyang789@huawei.com>
---
contrib/plugins/howvec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/howvec.c b/contrib/plugins/howvec.c
index 6e602aaccf..2f892da17d 100644
--- a/contrib/plugins/howvec.c
+++ b/contrib/plugins/howvec.c
@@ -235,7 +235,7 @@ static void vcpu_insn_exec_before(unsigned int cpu_index,
void *udata)
(*count)++;
}
-static uint64_t * find_counter(struct qemu_plugin_insn *insn)
+static uint64_t *find_counter(struct qemu_plugin_insn *insn)
{
int i;
uint64_t *cnt = NULL;
--
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 <=
- [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, 2020/12/08
- [PATCH v2 3/5] contrib: Add spaces around operator, zhouyang, 2020/12/08