Received: from eggs.gnu.org ([2001:4830:134:3::10]:51160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpG4m-00007h-Tp for qemu-devel@nongnu.org; Wed, 19 Jun 2013 06:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpG4l-0003as-Qv for qemu-devel@nongnu.org; Wed, 19 Jun 2013 06:57:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpG4l-0003ag-KF for qemu-devel@nongnu.org; Wed, 19 Jun 2013 06:57:19 -0400 Date: Wed, 19 Jun 2013 12:57:12 +0200 From: Kevin Wolf Message-ID: <20130619105712.GD2934@dhcp-200-207.str.redhat.com> References: <1369917299-5725-1-git-send-email-stefanha@redhat.com> <1369917299-5725-5-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369917299-5725-5-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 04/11] blockdev: drop redundant proto_drv check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Fam Zheng , qemu-devel@nongnu.org, dietmar@proxmox.com, imain@redhat.com, Paolo Bonzini , xiawenc@linux.vnet.ibm.com Am 30.05.2013 um 14:34 hat Stefan Hajnoczi geschrieben: > It is not necessary to check that we can find a protocol block driver > since we create or open the image file. This produces the error that we > need anyway. > > Besides, the QERR_INVALID_BLOCK_FORMAT is inappropriate since the > protocol is incorrect rather than the format. > > Also drop an empty line between bdrv_open() and checking its return > value. This may be due to copy-pasting from earlier code that performed > other operations before handling errors. > > Reported-by: Kevin Wolf > Signed-off-by: Stefan Hajnoczi Reviewed-by: Kevin Wolf