From: Ian Jackson Subject: Re: [PATCH v4 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest Date: Wed, 17 Apr 2013 12:41:18 +0100 Message-ID: <20846.35422.823767.562234@mariner.uk.xensource.com> References: <1365706317-5368-1-git-send-email-george.dunlap@eu.citrix.com> <516D91AE.4030600@citrix.com> <516E6D0F.4090606@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <516E6D0F.4090606@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: George Dunlap Cc: "sstanisi@cbnco.com" , "xen-devel@lists.xen.org" , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org George Dunlap writes ("Re: [PATCH v4 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest"): > >> + case LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN: > >> + if ( (rc = libxl__qmp_usb_remove(gc, domid, usbdev)) < 0 ) > > Spaces > > How important are the spaces? Most of the time I think it makes it > easier to read, in this case particularly so. We would normally write this instead: + rc = libxl__qmp_usb_remove(gc, domid, usbdev); + if (rc) goto out; I'm assuming libxl__qmp_usb_remove returns 0 on success. If it doesn't you and you want to throw away the information it does return, + if (rc<0) goto out; Ian.