From: Ian Campbell Date: Mon, 3 Sep 2012 10:22:00 +0000 (+0100) Subject: arm: correctly check for error on dom0 allocation X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7993 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d0a6bfdbf8a3f11e807624c6ff7b93f1f7b25a56;p=xen.git arm: correctly check for error on dom0 allocation Drop the redundant printk Signed-off-by: Ian Campbell Acked-by: Jan Beulich Committed-by: Ian Campbell --- diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index d4f22f65a8..dc0e215591 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -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;