From: Qing He Subject: Re: [PATCH] passthrough: fix typo Date: Tue, 20 Jan 2009 17:07:12 +0800 Message-ID: <20090120090712.GA22146@ub-qhe2> References: <20090120085817.GA14562@ub-qhe2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20090120085817.GA14562@ub-qhe2> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: "Jiang, Yunhong" List-Id: xen-devel@lists.xenproject.org On Tue, 2009-01-20 at 16:58 +0800, Qing He wrote: > The indentation level of the following code was incidentally > changed when event_lock was added to protect dpci. > It causes no issue but does look a little wierd, so fix it. > sorry for missing the DCO Signed-off-by: Qing He > --- > diff -r 8df3c145923f xen/drivers/passthrough/io.c > --- a/xen/drivers/passthrough/io.c Mon Jan 19 17:40:28 2009 +0000 > +++ b/xen/drivers/passthrough/io.c Tue Jan 20 16:52:39 2009 +0800 > @@ -84,13 +84,13 @@ int pt_irq_create_bind_vtd( > memset(hvm_irq_dpci, 0, sizeof(*hvm_irq_dpci)); > for ( int i = 0; i < NR_IRQS; i++ ) > INIT_LIST_HEAD(&hvm_irq_dpci->mirq[i].digl_list); > - } > > - if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 ) > - { > - xfree(hvm_irq_dpci); > - spin_unlock(&d->event_lock); > - return -EINVAL; > + if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 ) > + { > + xfree(hvm_irq_dpci); > + spin_unlock(&d->event_lock); > + return -EINVAL; > + } > } > > if ( pt_irq_bind->irq_type == PT_IRQ_TYPE_MSI ) > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel