Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NstDG-0000yF-Kb for qemu-devel@nongnu.org; Sat, 20 Mar 2010 03:35:14 -0400 Received: from [199.232.76.173] (port=33723 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NstDD-0000xZ-SR for qemu-devel@nongnu.org; Sat, 20 Mar 2010 03:35:11 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NstDA-0005Sv-Mr for qemu-devel@nongnu.org; Sat, 20 Mar 2010 03:35:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11515) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NstDA-0005Sd-3i for qemu-devel@nongnu.org; Sat, 20 Mar 2010 03:35:08 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH] qemu-io: Fix return value handling of bdrv_open References: <1269068918-6163-1-git-send-email-ozaki.ryota@gmail.com> Date: Sat, 20 Mar 2010 08:35:03 +0100 In-Reply-To: <1269068918-6163-1-git-send-email-ozaki.ryota@gmail.com> (Ryota Ozaki's message of "Sat, 20 Mar 2010 16:08:38 +0900") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ryota Ozaki Cc: qemu-devel@nongnu.org Ryota Ozaki writes: > bdrv_open may return -errno so we have to check > if the return value is '< 0', not '== -1'. Looks good, thanks!