From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: Re: [PATCH v5 09/10] libxl: call hotplug scripts for nic devices from libxl [and 1 more messages] Date: Tue, 26 Jun 2012 09:57:48 +0100 Message-ID: <4FE9798C.90203@citrix.com> References: <1339676475-33265-1-git-send-email-roger.pau@citrix.com> <1339676475-33265-14-git-send-email-roger.pau@citrix.com> <1338383275-21315-1-git-send-email-roger.pau@citrix.com> <1338383275-21315-10-git-send-email-roger.pau@citrix.com> <20432.48963.214910.33148@mariner.uk.xensource.com> <20452.23358.366361.231273@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20452.23358.366361.231273@mariner.uk.xensource.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: Ian Jackson Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Jackson wrote: > Roger Pau Monne writes ("[PATCH v6 13/13] libxl: call hotplug scripts for nic devices from libxl"): >> Since most of the needed work is already done in previous patches, >> this patch only contains the necessary code to call hotplug scripts >> for nic devices, that should be called when the device is added or >> removed from a guest. > > Thanks. > > Acked-by: Ian Jackson > > However, AFAICT you missed this comment of mine: >> Roger Pau Monne writes ("[PATCH v5 09/10] libxl: call hotplug scripts for nic devices from libxl"): >>> +int libxl__nic_type(libxl__gc *gc, libxl__device *dev, libxl_nic_type *nictype) >>> +{ >> ... >>> + } >>> + >>> +out: >>> + return rc; >>> +} >>> + >> As a matter of good practice I think you should say >> rc = 0; >> just before out, on the success path, and not rely on it having >> happened to be set to 0 by the previous successful call. > > So IWBNI in the next version you did that too. Sorry, I will add that and the acked-by on the next repost. > Thanks, > Ian.