From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH] spp_primary: remove nouse var in parsing command
Date: Wed, 30 Jan 2019 15:47:29 +0900 [thread overview]
Message-ID: <1548830849-6760-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> (raw)
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
This patch is to remove variable `num_args` used for debugging, but not
anymore.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
src/primary/main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/primary/main.c b/src/primary/main.c
index bb25c1b..9185e3d 100644
--- a/src/primary/main.c
+++ b/src/primary/main.c
@@ -421,7 +421,6 @@ parse_command(char *str)
char *token_list[MAX_PARAMETER] = {NULL};
char sec_name[16];
char *sec_args[NOF_TOKENS] = {NULL};
- int num_args = 0;
int ret = 0;
int i = 0;
@@ -437,7 +436,6 @@ parse_command(char *str)
sprintf(sec_name, "%s", token_list[i]);
else if (i > 2)
sec_args[i-3] = token_list[i];
- num_args++;
i++;
token_list[i] = strtok(NULL, " ");
}
--
2.7.4
reply other threads:[~2019-01-30 6:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1548830849-6760-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp \
--to=ogawa.yasufumi@lab.ntt.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=spp@dpdk.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).