qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Jeff Cody <jcody@redhat.com>
Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH] block: mirror - remove code cruft that has no function
Date: Thu, 6 Mar 2014 11:44:24 +0100	[thread overview]
Message-ID: <20140306104424.GH23172@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <dcf6d10cbc91d6acc08f5daf6eff8306a96f7688.1393947210.git.jcody@redhat.com>

On Tue, Mar 04, 2014 at 10:35:48AM -0500, Jeff Cody wrote:
> Originally, this built up the error message with the backing filename,
> so that errp was set as follows:
>     error_set(errp, QERR_OPEN_FILE_FAILED, backing_filename);
> 
> However, we now propagate the local_error from the
> bdrv_open_backing_file() call instead, making these 2 lines useless
> code.
> 
> Signed-off-by: Jeff Cody <jcody@redhat.com>
> ---
>  block/mirror.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/block/mirror.c b/block/mirror.c
> index e683959..dd5ee05 100644
> --- a/block/mirror.c
> +++ b/block/mirror.c
> @@ -520,9 +520,6 @@ static void mirror_complete(BlockJob *job, Error **errp)
>  
>      ret = bdrv_open_backing_file(s->target, NULL, &local_err);
>      if (ret < 0) {
> -        char backing_filename[PATH_MAX];
> -        bdrv_get_full_backing_filename(s->target, backing_filename,
> -                                       sizeof(backing_filename));
>          error_propagate(errp, local_err);
>          return;
>      }

Acked-by: Stefan Hajnoczi <stefanha@redhat.com>

  parent reply	other threads:[~2014-03-06 10:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04 15:35 [Qemu-devel] [PATCH] block: mirror - remove code cruft that has no function Jeff Cody
2014-03-04 15:55 ` Eric Blake
2014-03-04 16:45 ` Benoît Canet
2014-03-06 10:44 ` Stefan Hajnoczi [this message]
2014-03-06 10:48 ` Kevin Wolf

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=20140306104424.GH23172@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=jcody@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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).