aboutsummaryrefslogtreecommitdiff
path: root/qga
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2016-03-16 15:16:02 +0000
committerMichael Roth <mdroth@linux.vnet.ibm.com>2016-03-20 19:51:18 -0500
commita284974dee57b5ff7a194cf5daa4026bd22bf5ad (patch)
tree13249cdc6d49b77abb663f4c62571af62332cb08 /qga
parent4829e0378dfb91d55af9dfd741bd09e8f2c4f91a (diff)
downloadqemu-a284974dee57b5ff7a194cf5daa4026bd22bf5ad.zip
qemu-a284974dee57b5ff7a194cf5daa4026bd22bf5ad.tar.gz
qemu-a284974dee57b5ff7a194cf5daa4026bd22bf5ad.tar.bz2
qemu-ga: drop unused local err variable
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>
Diffstat (limited to 'qga')
-rw-r--r--qga/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/qga/main.c b/qga/main.c
index 0a168e2..743c5c1 100644
--- a/qga/main.c
+++ b/qga/main.c
@@ -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");