char-fd: remove useless chr pointer

Apparently unused since it was introduced in commit
a29753f8aa. Now, it can be trivially
accessed by CHARDEV() of self.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170720100046.4424-1-marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2017-07-20 12:00:46 +02:00 committed by Paolo Bonzini
parent d73f024722
commit 4db0db1fa6
2 changed files with 1 additions and 2 deletions

View File

@ -141,7 +141,6 @@ void qemu_chr_open_fd(Chardev *chr,
qio_channel_set_name(QIO_CHANNEL(s->ioc_out), name); qio_channel_set_name(QIO_CHANNEL(s->ioc_out), name);
g_free(name); g_free(name);
qemu_set_nonblock(fd_out); qemu_set_nonblock(fd_out);
s->chr = chr;
} }
static void char_fd_class_init(ObjectClass *oc, void *data) static void char_fd_class_init(ObjectClass *oc, void *data)

View File

@ -29,7 +29,7 @@
typedef struct FDChardev { typedef struct FDChardev {
Chardev parent; Chardev parent;
Chardev *chr;
QIOChannel *ioc_in, *ioc_out; QIOChannel *ioc_in, *ioc_out;
int max_size; int max_size;
} FDChardev; } FDChardev;