Commit 7869001b8f6e4e5409654cc56d4cc106372c1f80
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 | 2389 | static void monitor_handle_command(Monitor *mon, const char *cmdline) |
2390 | 2390 | { |
2391 | 2391 | const char *p, *pstart, *typestr; |
2392 | - char *q; | |
2393 | 2392 | int c, nb_args, len, i, has_arg; |
2394 | 2393 | const mon_cmd_t *cmd; |
2395 | 2394 | char cmdname[256]; |
... | ... | @@ -2415,7 +2414,6 @@ static void monitor_handle_command(Monitor *mon, const char *cmdline) |
2415 | 2414 | |
2416 | 2415 | /* extract the command name */ |
2417 | 2416 | p = cmdline; |
2418 | - q = cmdname; | |
2419 | 2417 | while (qemu_isspace(*p)) |
2420 | 2418 | p++; |
2421 | 2419 | if (*p == '\0') | ... | ... |