]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-ga: drop unused local err variable
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 16 Mar 2016 15:16:02 +0000 (15:16 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 21 Mar 2016 00:51:18 +0000 (19:51 -0500)
Commit 125b310e1d62e3a1dc1e7758563e598957ca7ae4 ("qemu-ga: move
channel/transport functionality into wrapper class") stopped using the
local err variable in channel_event_cb().

This patch deletes the unused variable.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/main.c

index 0a168e2da8d5b7bdfa90ce8232c98f59173d1f66..743c5c1349e0e5329691f6a5dccfa87849b5f1df 100644 (file)
@@ -618,13 +618,7 @@ static gboolean channel_event_cb(GIOCondition condition, gpointer data)
     GAState *s = data;
     gchar buf[QGA_READ_COUNT_DEFAULT+1];
     gsize count;
-    GError *err = NULL;
     GIOStatus status = ga_channel_read(s->channel, buf, QGA_READ_COUNT_DEFAULT, &count);
-    if (err != NULL) {
-        g_warning("error reading channel: %s", err->message);
-        g_error_free(err);
-        return false;
-    }
     switch (status) {
     case G_IO_STATUS_ERROR:
         g_warning("error reading channel");