All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rikiya Ayukawa <ayukawa.rikiya@jp.fujitsu.com>
To: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com
Subject: [PATCH] Remove redundant semicolons
Date: Wed, 01 Jul 2009 12:01:04 +0900	[thread overview]
Message-ID: <4A4AD170.9020309@jp.fujitsu.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

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@jp.fujitsu.com>

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

[-- Attachment #2: remove-redundant-semicolons.patch --]
[-- Type: text/plain, Size: 3917 bytes --]

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)
             {

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2009-07-01  3:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A4AD170.9020309@jp.fujitsu.com \
    --to=ayukawa.rikiya@jp.fujitsu.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ia64-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.