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

[XenPPC] [pushed] [ppc] clean up if clause for serial isrc

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] clean up if clause for serial isrc
From: jimix@xxxxxxxxxxxxxx
Date: Tue, 16 May 2006 16:00:17 -0400
Delivery-date: Tue, 16 May 2006 12:58:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
changeset:   10284:e100f9e74f8f1069b249472665b8dd20aa76e339
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Tue May 16 15:42:09 2006 -0400
files:       xen/arch/ppc/boot_of.c
description:
[ppc] clean up if clause for serial isrc


diff -r f543ec6888568c895a307e128ea0089e8fe23645 -r 
e100f9e74f8f1069b249472665b8dd20aa76e339 xen/arch/ppc/boot_of.c
--- a/xen/arch/ppc/boot_of.c    Tue May 16 10:59:27 2006 -0400
+++ b/xen/arch/ppc/boot_of.c    Tue May 16 15:42:09 2006 -0400
@@ -880,10 +880,12 @@ static int __init boot_of_serial(void)
     if (rc == OF_FAILURE) {
         of_printf("%s: no ISRC, forcing poll mode\n", __func__);
         ns16550.irq = 0;
-    }
-    ns16550.irq = val[0];
-    of_printf("%s: ISRC=0x%x, but forcing poll mode\n", __func__, ns16550.irq);
-    ns16550.irq = 0;
+    } else {
+        ns16550.irq = val[0];
+      of_printf("%s: ISRC=0x%x, but forcing poll mode\n",
+                __func__, ns16550.irq);
+      ns16550.irq = 0;
+    }
 
     return 1;
 }



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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [pushed] [ppc] clean up if clause for serial isrc, jimix <=