From 4db0db1fa6b653970148f6ff7a24bede1d52ef9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 20 Jul 2017 12:00:46 +0200 Subject: char-fd: remove useless chr pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently unused since it was introduced in commit a29753f8aa79a34a324afebe340182a51a5aef11. Now, it can be trivially accessed by CHARDEV() of self. Signed-off-by: Marc-André Lureau Message-Id: <20170720100046.4424-1-marcandre.lureau@redhat.com> Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- chardev/char-fd.c | 1 - 1 file changed, 1 deletion(-) (limited to 'chardev') diff --git a/chardev/char-fd.c b/chardev/char-fd.c index 1584a3de20..6a62a545f2 100644 --- a/chardev/char-fd.c +++ b/chardev/char-fd.c @@ -141,7 +141,6 @@ void qemu_chr_open_fd(Chardev *chr, qio_channel_set_name(QIO_CHANNEL(s->ioc_out), name); g_free(name); qemu_set_nonblock(fd_out); - s->chr = chr; } static void char_fd_class_init(ObjectClass *oc, void *data) -- cgit v1.2.3