Skip to content

Commit

Permalink
qemu-ga: drop unused local err variable
Browse files Browse the repository at this point in the history
Commit 125b310 ("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>
  • Loading branch information
stefanhaRH authored and mdroth committed Mar 21, 2016
1 parent 4829e03 commit a284974
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions qga/main.c
Expand Up @@ -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");
Expand Down

0 comments on commit a284974

Please sign in to comment.