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-devel

[Xen-devel] [PATCH] Remove redundant semicolons

To: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Remove redundant semicolons
From: Rikiya Ayukawa <ayukawa.rikiya@xxxxxxxxxxxxxx>
Date: Wed, 01 Jul 2009 12:01:04 +0900
Cc:
Delivery-date: Tue, 30 Jun 2009 20:01:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
Hi all,

I attached a patch to remove redundant semicolons in Xen source code.
This patch makes the source code a little more readable.

I compiled patched source code and confirmed dom0 can be booted.

Signed-off-by: Rikiya Ayukawa <ayukawa.rikiya@xxxxxxxxxxxxxx>

Diffstat:
  tools/debugger/xenitp/ia64-gen.c    |    2 +-
  tools/xenstore/tdb.c                |    2 +-
  xen/arch/ia64/linux-xen/unaligned.c |    2 +-
  xen/arch/ia64/vmx/vmx_interrupt.c   |    2 +-
  xen/arch/ia64/vmx/vmx_utility.c     |    2 +-
  xen/arch/ia64/xen/privop_stat.c     |    2 +-
  xen/arch/x86/hvm/vmx/vmx.c          |    2 +-
  xen/drivers/passthrough/pci.c       |    4 ++--
  xen/xsm/acm/acm_ops.c               |    2 +-
  9 files changed, 10 insertions(+), 10 deletions(-)

Best Regards,
--
Rikiya Ayukawa
diff -r 7397608bce87 tools/debugger/xenitp/ia64-gen.c
--- a/tools/debugger/xenitp/ia64-gen.c  Mon Jun 29 15:50:32 2009 +0100
+++ b/tools/debugger/xenitp/ia64-gen.c  Wed Jul 01 10:15:52 2009 +0900
@@ -569,7 +569,7 @@
 
       ics[ind]->nsubs = 1;
       ics[ind]->subs = tmalloc(int);
-      ics[ind]->subs[0] = fetch_insn_class (subname, 1);;
+      ics[ind]->subs[0] = fetch_insn_class (subname, 1);
     }
 
   while (xsect)
diff -r 7397608bce87 tools/xenstore/tdb.c
--- a/tools/xenstore/tdb.c      Mon Jun 29 15:50:32 2009 +0100
+++ b/tools/xenstore/tdb.c      Wed Jul 01 10:15:52 2009 +0900
@@ -1418,7 +1418,7 @@
                        /* They want us to terminate traversal */
                        ret = count;
                        if (unlock_record(tdb, tl.off) != 0) {
-                               TDB_LOG((tdb, 0, "tdb_traverse: unlock_record 
failed!\n"));;
+                               TDB_LOG((tdb, 0, "tdb_traverse: unlock_record 
failed!\n"));
                                ret = -1;
                        }
                        tdb->travlocks.next = tl.next;
diff -r 7397608bce87 xen/arch/ia64/linux-xen/unaligned.c
--- a/xen/arch/ia64/linux-xen/unaligned.c       Mon Jun 29 15:50:32 2009 +0100
+++ b/xen/arch/ia64/linux-xen/unaligned.c       Wed Jul 01 10:15:52 2009 +0900
@@ -1093,7 +1093,7 @@
        } else {
                addr = (unsigned long)regs;
 #if defined(XEN)
-               unat = &regs->eml_unat;;
+               unat = &regs->eml_unat;
 #else
                unat = &sw->caller_unat;
 #endif
diff -r 7397608bce87 xen/arch/ia64/vmx/vmx_interrupt.c
--- a/xen/arch/ia64/vmx/vmx_interrupt.c Mon Jun 29 15:50:32 2009 +0100
+++ b/xen/arch/ia64/vmx/vmx_interrupt.c Wed Jul 01 10:15:52 2009 +0900
@@ -80,7 +80,7 @@
     if ( vdcr & IA64_DCR_PP ) {
         vpsr.val |= IA64_PSR_PP;
     } else {
-        vpsr.val &= ~IA64_PSR_PP;;
+        vpsr.val &= ~IA64_PSR_PP;
     }
 
     vmx_vcpu_set_psr(vcpu, vpsr.val);
diff -r 7397608bce87 xen/arch/ia64/vmx/vmx_utility.c
--- a/xen/arch/ia64/vmx/vmx_utility.c   Mon Jun 29 15:50:32 2009 +0100
+++ b/xen/arch/ia64/vmx/vmx_utility.c   Wed Jul 01 10:15:52 2009 +0900
@@ -619,7 +619,7 @@
     sof = regs->cr_ifs & 0x7f;
     if(reg_index >= sof + 32)
         return IA64_FAULT;
-    return IA64_NO_FAULT;;
+    return IA64_NO_FAULT;
 }
 
 
diff -r 7397608bce87 xen/arch/ia64/xen/privop_stat.c
--- a/xen/arch/ia64/xen/privop_stat.c   Mon Jun 29 15:50:32 2009 +0100
+++ b/xen/arch/ia64/xen/privop_stat.c   Wed Jul 01 10:15:52 2009 +0900
@@ -58,7 +58,7 @@
                        return;
                }
        }
-       v->overflow++;;
+       v->overflow++;
 }
 
 void gather_privop_addrs(void)
diff -r 7397608bce87 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c        Mon Jun 29 15:50:32 2009 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c        Wed Jul 01 10:15:52 2009 +0900
@@ -2334,7 +2334,7 @@
         switch ( exit_reason )
         {
         case EXIT_REASON_EXCEPTION_NMI:
-            vector = __vmread(VM_EXIT_INTR_INFO) & INTR_INFO_VECTOR_MASK;;
+            vector = __vmread(VM_EXIT_INTR_INFO) & INTR_INFO_VECTOR_MASK;
             if ( vector != TRAP_page_fault
                  && vector != TRAP_nmi 
                  && vector != TRAP_machine_check ) 
diff -r 7397608bce87 xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c     Mon Jun 29 15:50:32 2009 +0100
+++ b/xen/drivers/passthrough/pci.c     Wed Jul 01 10:15:52 2009 +0900
@@ -133,7 +133,7 @@
 int pci_remove_device(u8 bus, u8 devfn)
 {
     struct pci_dev *pdev;
-    int ret = -ENODEV;;
+    int ret = -ENODEV;
 
     spin_lock(&pcidevs_lock);
     list_for_each_entry ( pdev, &alldevs_list, alldevs_list )
@@ -164,7 +164,7 @@
     else if (info->is_virtfn)
         pdev_type = "Virtual Function";
     else
-       return -EINVAL;;
+        return -EINVAL;
 
 
     ret = -ENOMEM;
diff -r 7397608bce87 xen/xsm/acm/acm_ops.c
--- a/xen/xsm/acm/acm_ops.c     Mon Jun 29 15:50:32 2009 +0100
+++ b/xen/xsm/acm/acm_ops.c     Wed Jul 01 10:15:52 2009 +0900
@@ -145,7 +145,7 @@
             if (!subj)
             {
                 rc = -ESRCH; /* domain not found */
-                break;;
+                break;
             }
             if (subj->ssid == NULL)
             {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Remove redundant semicolons, Rikiya Ayukawa <=