QEMU-Devel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] tests: fix counting typo error
@ 2019-10-10 12:17 Tianjia Zhang
  2019-10-11 10:18 ` Stefan Hajnoczi
  2019-10-11 11:13 ` Markus Armbruster
  0 siblings, 2 replies; 3+ messages in thread
From: Tianjia Zhang @ 2019-10-10 12:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: Tianjia Zhang

Instead of global variables, local variables should be incrementing,
This is a typo fix.

Signed-off-by: Tianjia Zhang <77389867@qq.com>
---
 tests/test-rcu-list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-rcu-list.c b/tests/test-rcu-list.c
index 6f076473e0..c0fc47ded4 100644
--- a/tests/test-rcu-list.c
+++ b/tests/test-rcu-list.c
@@ -219,7 +219,7 @@ static void *rcu_q_updater(void *arg)
             j++;
             if (target_el == j) {
                 struct list_element *new_el = g_new(struct list_element, 1);
-                n_nodes += n_nodes_local;
+                n_nodes_local++;
                 TEST_LIST_INSERT_AFTER_RCU(el, new_el, entry);
                 break;
             }
-- 
2.17.1



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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 12:17 [PATCH] tests: fix counting typo error Tianjia Zhang
2019-10-11 10:18 ` Stefan Hajnoczi
2019-10-11 11:13 ` Markus Armbruster

QEMU-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git
	git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \
		qemu-devel@nongnu.org
	public-inbox-index qemu-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git