Commit 7869001b8f6e4e5409654cc56d4cc106372c1f80

Authored by Luiz Capitulino
Committed by Blue Swirl
1 parent a84b785e

monitor: Remove unused variable

The local pointer 'q' is not used by monitor_handle_command().

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Showing 1 changed file with 0 additions and 2 deletions
monitor.c
@@ -2389,7 +2389,6 @@ static int default_fmt_size = 4; @@ -2389,7 +2389,6 @@ static int default_fmt_size = 4;
2389 static void monitor_handle_command(Monitor *mon, const char *cmdline) 2389 static void monitor_handle_command(Monitor *mon, const char *cmdline)
2390 { 2390 {
2391 const char *p, *pstart, *typestr; 2391 const char *p, *pstart, *typestr;
2392 - char *q;  
2393 int c, nb_args, len, i, has_arg; 2392 int c, nb_args, len, i, has_arg;
2394 const mon_cmd_t *cmd; 2393 const mon_cmd_t *cmd;
2395 char cmdname[256]; 2394 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)
2415 2414
2416 /* extract the command name */ 2415 /* extract the command name */
2417 p = cmdline; 2416 p = cmdline;
2418 - q = cmdname;  
2419 while (qemu_isspace(*p)) 2417 while (qemu_isspace(*p))
2420 p++; 2418 p++;
2421 if (*p == '\0') 2419 if (*p == '\0')