From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ao8kj-0007CY-Sz for qemu-devel@nongnu.org; Thu, 07 Apr 2016 08:09:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ao8ke-0007f2-BC for qemu-devel@nongnu.org; Thu, 07 Apr 2016 08:09:37 -0400 Date: Thu, 7 Apr 2016 14:09:22 +0200 From: Kevin Wolf Message-ID: <20160407120922.GC4509@noname.redhat.com> References: <1459965434-21531-1-git-send-email-mreitz@redhat.com> <1459965434-21531-2-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459965434-21531-2-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 for-2.7 1/8] block: Drop useless bdrv_new() call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Alberto Garcia , qemu-devel@nongnu.org, qemu-block@nongnu.org Am 06.04.2016 um 19:57 hat Max Reitz geschrieben: > bdrv_append_temp_snapshot() uses bdrv_new() to create an empty BDS > before invoking bdrv_open() on that BDS. This is probably a relict from > when it used to do some modifications on that empty BDS, but now that is > unnecessary, so we can just set bs_snapshot to NULL and let bdrv_open() > do the rest. > > Signed-off-by: Max Reitz Reviewed-by: Kevin Wolf