mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
misc: Remove unused Error variables
There's a few cases which we're passing an Error pointer to a function only to discard it immediately afterwards without checking it. In these cases we can simply remove the variable and pass NULL instead. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20170829120836.16091-1-berto@igalia.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
e916a6e88a
commit
c3a8fe331e
3 changed files with 6 additions and 18 deletions
4
dump.c
4
dump.c
|
@ -1695,10 +1695,8 @@ static void dump_process(DumpState *s, Error **errp)
|
|||
|
||||
static void *dump_thread(void *data)
|
||||
{
|
||||
Error *err = NULL;
|
||||
DumpState *s = (DumpState *)data;
|
||||
dump_process(s, &err);
|
||||
error_free(err);
|
||||
dump_process(s, NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue