WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] passthrough: fix typo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] passthrough: fix typo
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Jan 2009 20:30:10 -0800
Delivery-date: Tue, 20 Jan 2009 20:29:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232457748 0
# Node ID 0ab2b283e89230d485ded93acea58da5105df802
# Parent  8df3c145923f8cdbaf68860c2033db4697dbf0a5
passthrough: fix typo

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 weird, so fix it.

Signed-off-by: Qing He <qing.he@xxxxxxxxx>
---
 xen/drivers/passthrough/io.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff -r 8df3c145923f -r 0ab2b283e892 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 13:22:28 2009 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] passthrough: fix typo, Xen patchbot-unstable <=