From c3a8fe331eb4310e2d058f1c15a817d255840323 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Tue, 29 Aug 2017 15:08:36 +0300 Subject: misc: Remove unused Error variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Eric Blake Message-id: 20170829120836.16091-1-berto@igalia.com Signed-off-by: Stefan Hajnoczi --- dump.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dump.c') diff --git a/dump.c b/dump.c index d9090a2..a79773d 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; } -- cgit v1.1