提交 7869001b 编写于 作者: L Luiz Capitulino 提交者: Blue Swirl

monitor: Remove unused variable

The local pointer 'q' is not used by monitor_handle_command().
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
上级 a84b785e
...@@ -2389,7 +2389,6 @@ static int default_fmt_size = 4; ...@@ -2389,7 +2389,6 @@ static int default_fmt_size = 4;
static void monitor_handle_command(Monitor *mon, const char *cmdline) static void monitor_handle_command(Monitor *mon, const char *cmdline)
{ {
const char *p, *pstart, *typestr; const char *p, *pstart, *typestr;
char *q;
int c, nb_args, len, i, has_arg; int c, nb_args, len, i, has_arg;
const mon_cmd_t *cmd; const mon_cmd_t *cmd;
char cmdname[256]; char cmdname[256];
...@@ -2415,7 +2414,6 @@ static void monitor_handle_command(Monitor *mon, const char *cmdline) ...@@ -2415,7 +2414,6 @@ static void monitor_handle_command(Monitor *mon, const char *cmdline)
/* extract the command name */ /* extract the command name */
p = cmdline; p = cmdline;
q = cmdname;
while (qemu_isspace(*p)) while (qemu_isspace(*p))
p++; p++;
if (*p == '\0') if (*p == '\0')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册