diff options
| author | Alberto Garcia <berto@igalia.com> | 2017-08-29 15:08:36 +0300 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-08-30 11:58:26 +0100 |
| commit | c3a8fe331eb4310e2d058f1c15a817d255840323 (patch) | |
| tree | fe9ebf33e61f89560917abe10d2b037bef471920 /dump.c | |
| parent | e916a6e88a4ff6c39cd6f62fb162a561c6b89de8 (diff) | |
| download | focaccia-qemu-c3a8fe331eb4310e2d058f1c15a817d255840323.tar.gz focaccia-qemu-c3a8fe331eb4310e2d058f1c15a817d255840323.zip | |
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>
Diffstat (limited to 'dump.c')
| -rw-r--r-- | dump.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dump.c b/dump.c index d9090a24cc..a79773d0f7 100644 --- a/dump.c +++ b/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; } |