qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] char-fd: remove useless chr pointer
Date: Mon, 24 Jul 2017 19:10:37 +0200	[thread overview]
Message-ID: <48a5c773-8104-f589-a4d1-3fd9f4687e47@redhat.com> (raw)
In-Reply-To: <20170720100046.4424-1-marcandre.lureau@redhat.com>

On 20/07/2017 12:00, Marc-André Lureau wrote:
> 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 <marcandre.lureau@redhat.com>
> ---
>  include/chardev/char-fd.h | 2 +-
>  chardev/char-fd.c         | 1 -
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/include/chardev/char-fd.h b/include/chardev/char-fd.h
> index 55ae5b47b0..e7c2b176f9 100644
> --- a/include/chardev/char-fd.h
> +++ b/include/chardev/char-fd.h
> @@ -29,7 +29,7 @@
>  
>  typedef struct FDChardev {
>      Chardev parent;
> -    Chardev *chr;
> +
>      QIOChannel *ioc_in, *ioc_out;
>      int max_size;
>  } FDChardev;
> 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)
> 

Queued for 2.10 as it's a trivial dead code removal.

Paolo

      parent reply	other threads:[~2017-07-24 17:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20 10:00 [Qemu-devel] [PATCH] char-fd: remove useless chr pointer Marc-André Lureau
2017-07-20 12:08 ` Eric Blake
2017-07-20 13:07 ` no-reply
2017-07-24 17:10 ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48a5c773-8104-f589-a4d1-3fd9f4687e47@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).