qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Tianjia Zhang <77389867@qq.com>
To: qemu-devel@nongnu.org
Cc: Tianjia Zhang <77389867@qq.com>
Subject: [PATCH] tests: fix counting typo error
Date: Thu, 10 Oct 2019 20:17:02 +0800	[thread overview]
Message-ID: <20191010121702.90142-1-77389867@qq.com> (raw)

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



             reply	other threads:[~2019-10-10 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10 12:17 Tianjia Zhang [this message]
2019-10-11 10:18 ` [PATCH] tests: fix counting typo error Stefan Hajnoczi
2019-10-11 11:13 ` Markus Armbruster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191010121702.90142-1-77389867@qq.com \
    --to=77389867@qq.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).