arm: correctly check for error on dom0 allocation
authorIan Campbell <Ian.Campbell@citrix.com>
Mon, 3 Sep 2012 10:22:00 +0000 (11:22 +0100)
committerIan Campbell <Ian.Campbell@citrix.com>
Mon, 3 Sep 2012 10:22:00 +0000 (11:22 +0100)
Drop the redundant printk

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/setup.c

index d4f22f65a8e5168a630cd379ff354da8be75b692..dc0e215591766c17b1e9be001e5f306fd50a3872 100644 (file)
@@ -238,9 +238,7 @@ void __init start_xen(unsigned long boot_phys_offset,
 
     /* Create initial domain 0. */
     dom0 = domain_create(0, 0, 0);
-    if ( IS_ERR(dom0) )
-            printk("domain_create failed\n");
-    if ( (dom0 == NULL) || (alloc_dom0_vcpu0() == NULL) )
+    if ( IS_ERR(dom0) || (alloc_dom0_vcpu0() == NULL) )
             panic("Error creating domain 0\n");
 
     dom0->is_privileged = 1;