Received: from eggs.gnu.org ([2001:4830:134:3::10]:44248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIyyv-0003FL-2y for qemu-devel@nongnu.org; Thu, 08 Jun 2017 11:04:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIyyr-0000RK-Tx for qemu-devel@nongnu.org; Thu, 08 Jun 2017 11:04:17 -0400 From: Alberto Garcia In-Reply-To: <20170608133906.12737-3-ehabkost@redhat.com> References: <20170608133906.12737-1-ehabkost@redhat.com> <20170608133906.12737-3-ehabkost@redhat.com> Date: Thu, 08 Jun 2017 17:04:08 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 2/5] block: Don't try to set *errp directly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost , qemu-devel@nongnu.org Cc: Kevin Wolf , Markus Armbruster , qemu-block@nongnu.org, Max Reitz On Thu 08 Jun 2017 03:39:03 PM CEST, Eduardo Habkost wrote: > Assigning directly to *errp is not valid, as errp may be NULL, > &error_fatal, or &error_abort. Use error_propagate() instead. Well, the NULL case was already handled by the code, but &error_fatal and &error_abort certainly not. > With this, there's no need to check if errp is NULL anymore, as > error_propagate() and error_prepend() are able to handle that. > > Cc: Kevin Wolf > Cc: Max Reitz > Cc: qemu-block@nongnu.org > Signed-off-by: Eduardo Habkost Reviewed-by: Alberto Garcia Berto