From: Ian Jackson Subject: Re: [PATCH v3 2/7] libxl: add a transaction parameter to libxl__device_generic_add Date: Tue, 17 Apr 2012 18:27:13 +0100 Message-ID: <20365.42993.969557.680850@mariner.uk.xensource.com> References: <1334601190-14187-2-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1334601190-14187-2-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("[Xen-devel] [PATCH v3 2/7] libxl: add a transaction parameter to libxl__device_generic_add"): > Add a xs_transaction_t parameter to libxl__device_generic_add, if it is > XBT_NULL, allocate a proper one. > > Update all the callers. > > Signed-off-by: Stefano Stabellini Acked-by: Ian Jackson > + int create_transaction = t == XBT_NULL; Although I don't much like this style. I would have written + int create_transaction = !t; but I guess you're not going to swallow that ... Ian.