From: Ian Jackson Subject: Re: [PATCH v5 09/10] libxl: call hotplug scripts for nic devices from libxl [and 1 more messages] Date: Fri, 22 Jun 2012 12:47:10 +0100 Message-ID: <20452.23358.366361.231273@mariner.uk.xensource.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20432.48963.214910.33148@mariner.uk.xensource.com>, <1339676475-33265-14-git-send-email-roger.pau@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: Roger Pau Monne Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org 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. Thanks, Ian.