All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Benoît Canet" <benoit.canet@irqsave.net>
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: Tue, 4 Mar 2014 17:45:18 +0100	[thread overview]
Message-ID: <20140304164518.GC3253@irqsave.net> (raw)
In-Reply-To: <dcf6d10cbc91d6acc08f5daf6eff8306a96f7688.1393947210.git.jcody@redhat.com>

The Tuesday 04 Mar 2014 à 10:35:48 (-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;
>      }
> -- 
> 1.8.3.1
> 
> 
Reviewed-by: Benoit Canet <benoit@irqsave.net>

  parent reply	other threads:[~2014-03-04 16:45 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 [this message]
2014-03-06 10:44 ` Stefan Hajnoczi
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=20140304164518.GC3253@irqsave.net \
    --to=benoit.canet@irqsave.net \
    --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 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.