Skip to content

Commit

Permalink
char-fd: remove useless chr pointer
Browse files Browse the repository at this point in the history
Apparently unused since it was introduced in commit
a29753f. Now, it can be trivially
accessed by CHARDEV() of self.

Signed-off-by: Marc-André Lureau <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
elmarco authored and bonzini committed Aug 1, 2017
1 parent d73f024 commit 4db0db1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion chardev/char-fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion include/chardev/char-fd.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

typedef struct FDChardev {
Chardev parent;
Chardev *chr;

QIOChannel *ioc_in, *ioc_out;
int max_size;
} FDChardev;
Expand Down

0 comments on commit 4db0db1

Please sign in to comment.