From: Ian Jackson Subject: Re: [PATCH v5 7/8] xl/libxl: implement QDISK libxl_device_disk_local_attach Date: Mon, 14 May 2012 15:23:55 +0100 Message-ID: <20401.5499.750184.933944@mariner.uk.xensource.com> References: <1336130000-27261-7-git-send-email-stefano.stabellini@eu.citrix.com> <20388.1780.828830.419864@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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 Campbell List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("Re: [PATCH v5 7/8] xl/libxl: implement QDISK libxl_device_disk_local_attach"): > On Fri, 4 May 2012, Ian Jackson wrote: > > Maybe I'm being excessively picky, but I think "rc" should be used > > only for a variable which contains libxl error codes. I had to do a > > double-take when I saw > > if (rc == 0) { > > error handling; > > since rc==0 is of course the success case. > > Should I s/rc/ret/ in this function? I think you should s/rc// when it's the return value from xs_*. ret would do. If rc is used for a libxl error code it should remain as rc. Ian.