From: Ian Campbell Subject: Re: [PATCH 05/11] libxl: abolish useless `start' parameter to libxl__add_* Date: Thu, 2 Aug 2012 11:19:57 +0100 Message-ID: <1343902797.27221.120.camel@zakaz.uk.xensource.com> References: <1343838260-17725-1-git-send-email-ian.jackson@eu.citrix.com> <1343838260-17725-6-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343838260-17725-6-git-send-email-ian.jackson@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: Ian Jackson Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-08-01 at 17:24 +0100, Ian Jackson wrote: > 0 is always passed for this parameter and the code doesn't, actually, > use it, now. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell > { \ > AO_GC; \ > int i; \ > - int end = start + d_config->num_##type##s; \ This definition of end is pretty dodgy, glad to be rid of it. > - for (i = start; i < end; i++) { \ > + for (i = 0; i < d_config->num_##type##s; i++) { \ > libxl__ao_device *aodev = libxl__multidev_prepare(aodevs); \ > - libxl__device_##type##_add(egc, domid, &d_config->type##s[i-start], \ > + libxl__device_##type##_add(egc, domid, &d_config->type##s[i], \ > aodev); \ > } \ > } Ian.