All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Alberto Garcia <berto@igalia.com>
Cc: qemu-devel@nongnu.org, Kevin Wolf <kwolf@redhat.com>,
	qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] misc: Remove unused Error variables
Date: Wed, 30 Aug 2017 11:59:41 +0100	[thread overview]
Message-ID: <20170830105941.GK24565@stefanha-x1.localdomain> (raw)
In-Reply-To: <20170829120836.16091-1-berto@igalia.com>

On Tue, Aug 29, 2017 at 03:08:36PM +0300, Alberto Garcia wrote:
> There's a few cases which we're passing an Error pointer to a function
> only to discard it immediately afterwards without checking it. In
> these cases we can simply remove the variable and pass NULL instead.
> 
> Signed-off-by: Alberto Garcia <berto@igalia.com>
> ---
>  block/qcow.c  | 12 +++---------
>  block/qcow2.c |  8 ++------
>  dump.c        |  4 +---
>  3 files changed, 6 insertions(+), 18 deletions(-)

Thanks, applied to my block-next tree:
https://github.com/stefanha/qemu/commits/block-next

Stefan

      parent reply	other threads:[~2017-08-30 10:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29 12:08 [Qemu-devel] [PATCH] misc: Remove unused Error variables Alberto Garcia
2017-08-29 12:31 ` Philippe Mathieu-Daudé
2017-08-29 13:12   ` Alberto Garcia
2017-08-29 14:40 ` Eric Blake
2017-08-29 14:45   ` Alberto Garcia
2017-08-30 10:59 ` Stefan Hajnoczi [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=20170830105941.GK24565@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=berto@igalia.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.