From: Ian Campbell Subject: Re: [PATCH v10 16/19] libxl: call hotplug scripts for nic devices from libxl Date: Fri, 20 Jul 2012 17:12:15 +0100 Message-ID: <1342800735.26734.143.camel@zakaz.uk.xensource.com> References: <1342793548-10239-1-git-send-email-roger.pau@citrix.com> <1342793548-10239-17-git-send-email-roger.pau@citrix.com> <1342800087.26734.140.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1342800087.26734.140.camel@zakaz.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: Roger Pau Monne Cc: Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-07-20 at 17:01 +0100, Ian Campbell wrote: > > + switch (nictype) { > > + case LIBXL_NIC_TYPE_VIF_IOEMU: > > + env[nr++] = "INTERFACE"; > > + env[nr++] = libxl__strdup(gc, libxl__device_nic_devname(gc, > > + dev->domid, dev->devid, > > + LIBXL_NIC_TYPE_VIF_IOEMU)); > > Is this fall-through of the case deliberate? If so then a comment would > be good. Also -- isn't the strdup redendant here too?